
Oct. 24, 2003
4:12 p.m.
The underlying generator function could still be created at compile-time and it (or its code object?) stored in the current function's constants.
No, the code object would be stored in the constants; the function object would be created each time around the loop. Good thing it came from an example that Tim himself didn't like. :-) --Guido van Rossum (home page: http://www.python.org/~guido/)