Daniel Stutzbach wrote: > No, I'm afraid Brett is quite right. Globals are looked up when the > function is executed, true, but they are looked up within the module > that defined the function. I was thinking you could fix that by going over the imported functions and stuffing the current globals into their func_globals, but unfortunately it's read-only. :-( >>> f.func_globals = g Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: readonly attribute Is there a reason it couldn't be made writeable? -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4