A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-November/029918.html below:

[Python-Dev] metaclass insanity

[Python-Dev] metaclass insanity [Python-Dev] metaclass insanityKevin Jacobs jacobs@penguin.theopalgroup.com
Tue, 5 Nov 2002 11:34:36 -0500 (EST)
On Tue, 5 Nov 2002, Guido van Rossum wrote:
> > > Nah, it's just a resumable function...
> > 
> > Which is a closure, aka lexically scoped namespace.  It is not, however, a
> > continuation.
> 
> I don't think it makes much sense to call all Python functions
> closures.

I was taught that a closure is a first class function or object that holds
references to its own lexically defined namespace(s).  So as I understand
it, they _are_ closures, though limited to only two levels of lexical scope
(or three if you count the builtin scope).

-Kevin

--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19         E-mail: jacobs@theopalgroup.com
Fax:   (216) 986-0714              WWW:    http://www.theopalgroup.com




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