Skip to content

Assignment operator allows to assign to __debug__ #80233

Description

@serhiy-storchaka
BPO 36052
Nosy @gvanrossum, @serhiy-storchaka, @matrixise, @emilyemorehouse, @pablogsal
PRs
  • bpo-36052: Disallow assigning to __debug__ in named expressions #11957
  • bpo-36052: Raise a SyntaxError when we assign a value to __debug__ #11958
  • 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 = 'https://github.com/matrixise'
    closed_at = <Date 2019-02-21.10:12:23.071>
    created_at = <Date 2019-02-20.15:23:36.274>
    labels = ['interpreter-core', 'type-bug', '3.8']
    title = 'Assignment operator allows to assign to __debug__'
    updated_at = <Date 2019-02-21.10:12:23.071>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2019-02-21.10:12:23.071>
    actor = 'pablogsal'
    assignee = 'matrixise'
    closed = True
    closed_date = <Date 2019-02-21.10:12:23.071>
    closer = 'pablogsal'
    components = ['Interpreter Core']
    creation = <Date 2019-02-20.15:23:36.274>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36052
    keywords = ['patch']
    message_count = 11.0
    messages = ['336100', '336103', '336104', '336108', '336110', '336112', '336113', '336115', '336119', '336124', '336197']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'matrixise', 'emilyemorehouse', 'pablogsal']
    pr_nums = ['11957', '11958']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36052'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions