I've found the symtable module, which is quite nice. Unfortunately, I cannot find any documentation, and the module don't work as I expect: If the source looks like this: foo = 1 def fie(): print foo Calling is_global() for the "foo" name returns False (using the fie functions SymbolTable). With a method, is_global() returns true, though: foo = 1 class C: def fie(self): print foo Have I misunderstood something, or is this a bug? -- /Peter Åstrand <astrand at lysator.liu.se>
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