[Python-Dev] Anonymous blocks: Thunks or iterators?
mwh at python.net
Fri Apr 29 11:37:30 CEST 2005
Brian Sabbey <sabbey at u.washington.edu> writes:
> It is possible to implement thunks without them creating their own
> frame. They can reuse the frame of the surrounding function. So a new
> frame does not need to be created when the thunk is called, and, much
> like with a yield statement, the frame is not taken down when the
> thunk completes running. The implementation just needs to take care
> to save and restore members of the frame that get clobbered when the
> thunk is running.
Woo. That's cute.
SCSI is not magic. There are fundamental technical reasons why it
is necessary to sacrifice a young goat to your SCSI chain now and
then. -- John Woods
More information about the Python-Dev