Message365820
Consider this function:
def f():
global e
e = 1
When inspecting symbols with symtable, symbol 'e' will be global and local, whereas is_local() should return False. See the attached file for reproducing. It will output to stdout:
symbol 'e' in function scope: is_global() = True, is_local() = True
global scope: e = 1 |
|
Date |
User |
Action |
Args |
2020-04-05 13:30:26 | coproc | set | recipients:
+ coproc |
2020-04-05 13:30:26 | coproc | set | messageid: <1586093426.2.0.0805536970057.issue40196@roundup.psfhosted.org> |
2020-04-05 13:30:26 | coproc | link | issue40196 messages |
2020-04-05 13:30:26 | coproc | create | |
|