python / python/cpython

policy.max_line_length is incorrectly assumed to never be None

Open
#85,751 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 topic-email type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 41585
Nosy @warsaw, @bitdancer, @maxking, @websurfer5, @iritkatriel, @foxyblue, @akulakov
PRs
  • python/cpython#21955
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-08-18.20:47:21.272>
    labels = ['type-bug', 'expert-email', '3.10']
    title = 'policy.max_line_length is incorrectly assumed to never be None'
    updated_at = <Date 2021-12-29.03:47:26.359>
    user = 'https://bugs.python.org/equaeghe'
    

    bugs.python.org fields:

    activity = <Date 2021-12-29.03:47:26.359>
    actor = 'andrei.avk'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['email']
    creation = <Date 2020-08-18.20:47:21.272>
    creator = 'equaeghe'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41585
    keywords = ['patch']
    message_count = 4.0
    messages = ['375625', '375653', '375691', '409280']
    nosy_count = 8.0
    nosy_names = ['barry', 'r.david.murray', 'maxking', 'equaeghe', 'Jeffrey.Kintscher', 'iritkatriel', 's.williams-wynn', 'andrei.avk']
    pr_nums = ['21955']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41585'
    versions = ['Python 3.10']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    The issue concerns policy.max_line_length in the email component and references existing PR python/cpython#21955. Start by reviewing that PR and the related issue history to identify where None is mishandled. Done means the email behavior correctly accommodates a None value and the relevant behavior is covered by the project's tests.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    backend
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    35/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.