Author llehtahw
Recipients eric.smith, llehtahw, nitishch, yselivanov
Date 2019-04-24.01:50:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Look at this

We are taking names from func.__code__.co_names, which also contains names of object's attributes we visited. As a result, we may get more names unexpectedly in 'globals', 'builtins', and even 'unbound'.

And this example might be another case of this potentially bug

>>> import inspect
>>> def abc():
...     import os
...     sys = None
>>> inspect.getclosurevars(abc)
ClosureVars(nonlocals={}, globals={}, builtins={}, unbound={'os'})
Date User Action Args
2019-04-24 01:50:24llehtahwsetrecipients: + llehtahw, eric.smith, yselivanov, nitishch
2019-04-24 01:50:24llehtahwsetmessageid: <>
2019-04-24 01:50:24llehtahwlinkissue36697 messages
2019-04-24 01:50:24llehtahwcreate