Fix RecursionError: global statements in modules should just be ignored, fixes #1457

This commit is contained in:
Dave Halter
2019-12-13 00:21:36 +01:00
parent e656a5f18f
commit 5e3e268cc6
2 changed files with 12 additions and 0 deletions

View File

@@ -196,6 +196,13 @@ def global_as_import():
globals.foo
global r
r = r[r]
if r:
r += r + 2
#? int()
r
# -----------------
# within docstrs
# -----------------