Author Noitul
Recipients Noitul
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:29Noitulsetrecipients: + Noitul
2019-04-22 08:49:29Noitulsetmessageid: <1555922969.45.0.450842121898.issue36697@roundup.psfhosted.org>
2019-04-22 08:49:29Noitullinkissue36697 messages
2019-04-22 08:49:29Noitulcreate