Skip to content

Comprehensions in a class definition mostly cannot access class variable #56005

@mjs0

Description

@mjs0
mannequin
BPO 11796
Nosy @rhettinger, @terryjreedy, @merwok, @voidspace, @Trundle, @florentx, @durban
Superseder
  • bpo-13557: exec of list comprehension fails on NameError
  • 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 = <Date 2012-07-07.15:20:51.321>
    created_at = <Date 2011-04-07.12:55:20.540>
    labels = ['type-bug', 'docs']
    title = 'Comprehensions in a class definition mostly cannot access class variable'
    updated_at = <Date 2015-10-29.23:21:46.699>
    user = 'https://bugs.python.org/mjs0'

    bugs.python.org fields:

    activity = <Date 2015-10-29.23:21:46.699>
    actor = 'Anne Rosa Wangnick'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2012-07-07.15:20:51.321>
    closer = 'flox'
    components = ['Documentation']
    creation = <Date 2011-04-07.12:55:20.540>
    creator = 'mjs0'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 11796
    keywords = []
    message_count = 9.0
    messages = ['133213', '133341', '133359', '133361', '133362', '133371', '133378', '164871', '253700']
    nosy_count = 13.0
    nosy_names = ['rhettinger', 'terry.reedy', 'eric.araujo', 'michael.foord', 'Trundle', 'jonathan.hartley', 'flox', 'daniel.urban', 'docs@python', 'westley.martinez', 'mjs0', 'josmiley', 'Anne Rosa Wangnick']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'needs patch'
    status = 'closed'
    superseder = '13557'
    type = 'behavior'
    url = 'https://bugs.python.org/issue11796'
    versions = ['Python 3.1', 'Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions