[issue34947] inspect.getclosurevars() does not get all globals

2018-10-09 Thread Jan Hermann
New submission from Jan Hermann : inspect.getclosurevars() omits globals or nonlocals that are bound within comprehensions: 22:50 ~ python3 Python 3.7.0 (default, Aug 17 2018, 21:14:48) [Clang 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright", "credi

[issue34947] inspect.getclosurevars() does not get all globals

2018-10-23 Thread Jan Hermann
Jan Hermann added the comment: Ok, that’s fair. But then the inspect module currently doesn’t provide tools to the user to construct the recursive identification without duplicating code already in stdlib. For that, one would need to refactor getclosurevars() to two parts: getcode() and