Skip to content

symtable.Symbol.is_local() can be True for global symbols #84377

@coproc

Description

@coproc
mannequin
BPO 40196
Nosy @pablogsal, @miss-islington
PRs
  • bpo-40196: Fix a bug in the symtable when reporting inspecting global variables #19391
  • [3.8] bpo-40196: Fix a bug in the symtable when reporting inspecting global variables (GH-19391) #19394
  • [3.7] bpo-40196: Fix a bug in the symtable when reporting inspecting global variables (GH-19391) #19395
  • Files
  • global_and_local.py: console output (as in comment) shows that for global symbol 'e' also is_local() returns True
  • 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/pablogsal'
    closed_at = <Date 2020-04-06.16:42:07.698>
    created_at = <Date 2020-04-05.13:30:26.178>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'symtable.Symbol.is_local() can be True for global symbols'
    updated_at = <Date 2020-04-06.16:42:07.698>
    user = 'https://bugs.python.org/coproc'

    bugs.python.org fields:

    activity = <Date 2020-04-06.16:42:07.698>
    actor = 'pablogsal'
    assignee = 'pablogsal'
    closed = True
    closed_date = <Date 2020-04-06.16:42:07.698>
    closer = 'pablogsal'
    components = ['Library (Lib)']
    creation = <Date 2020-04-05.13:30:26.178>
    creator = 'coproc'
    dependencies = []
    files = ['49037']
    hgrepos = []
    issue_num = 40196
    keywords = ['patch']
    message_count = 8.0
    messages = ['365820', '365821', '365845', '365853', '365855', '365868', '365870', '365871']
    nosy_count = 3.0
    nosy_names = ['pablogsal', 'miss-islington', 'coproc']
    pr_nums = ['19391', '19394', '19395']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40196'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions