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 coproc
Recipients coproc
Date 2020-04-05.13:30:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:26coprocsetrecipients: + coproc
2020-04-05 13:30:26coprocsetmessageid: <>
2020-04-05 13:30:26coproclinkissue40196 messages
2020-04-05 13:30:26coproccreate