inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable · Issue #70764 · python/cpython · GitHub
Skip to content

inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable #70764

Description

@RyanFox
mannequin
BPO 26577
Nosy @1st1, @hongweipeng, @iritkatriel

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 2016-03-17.07:40:30.852>
labels = ['type-bug', 'library', '3.11']
title = 'inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable'
updated_at = <Date 2021-12-18.20:30:07.566>
user = 'https://bugs.python.org/RyanFox'

bugs.python.org fields:

activity = <Date 2021-12-18.20:30:07.566>
actor = 'Ryan Fox'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2016-03-17.07:40:30.852>
creator = 'Ryan Fox'
dependencies = []
files = []
hgrepos = []
issue_num = 26577
keywords = []
message_count = 4.0
messages = ['261897', '407082', '408856', '408866']
nosy_count = 4.0
nosy_names = ['yselivanov', 'Ryan Fox', 'hongweipeng', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue26577'
versions = ['Python 3.11']

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions