Message340645
>>> 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? |
|
Date |
User |
Action |
Args |
2019-04-22 08:49:29 | llehtahw | set | recipients:
+ llehtahw |
2019-04-22 08:49:29 | llehtahw | set | messageid: <1555922969.45.0.450842121898.issue36697@roundup.psfhosted.org> |
2019-04-22 08:49:29 | llehtahw | link | issue36697 messages |
2019-04-22 08:49:29 | llehtahw | create | |
|