This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author llehtahw
Recipients llehtahw
Date 2019-04-22.08:49:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555922969.45.0.450842121898.issue36697@roundup.psfhosted.org>
In-reply-to
Content
>>> import inspect                      
>>> a = 0                               
>>> b = 1                               
>>> def abc():                          
>>>     return a.b                                                      
>>> print(inspect.getclosurevars(abc))  

ClosureVars(nonlocals={}, globals={'a': 0, 'b': 1}, builtins={}, unbound=set())

Should "'b': 1" be in globals dict?
History
Date User Action Args
2019-04-22 08:49:29llehtahwsetrecipients: + llehtahw
2019-04-22 08:49:29llehtahwsetmessageid: <1555922969.45.0.450842121898.issue36697@roundup.psfhosted.org>
2019-04-22 08:49:29llehtahwlinkissue36697 messages
2019-04-22 08:49:29llehtahwcreate