A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-April/053132.html below:

[Python-Dev] Anonymous blocks: Thunks or iterators?

[Python-Dev] Anonymous blocks: Thunks or iterators? [Python-Dev] Anonymous blocks: Thunks or iterators?Michael Hudson 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.

Cheers,
mwh

-- 
  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 mailing list

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