> For the record, the only reason I had to use exec in that case was because > the "new" module is not capable creating a new method. Trying to compile a > block of code with a "return" statement but no function decl (to create a > code object suitable for a method) fails at compile time. I don't understand. Methods do have a function declaration: class C: def meth(self): pass Or am I misunderstanding? --Guido van Rossum (home page: http://www.python.org/~guido/)
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