Closures in python

Hallvard B Furuseth (nospam nospam) h.b.furuseth at usit.uio.no
Fri Sep 19 06:14:20 EDT 2003


Anton Vredegoor wrote:
> Hallvard B Furuseth <h.b.furuseth(nospam)@usit.uio(nospam).no> wrote:
> 
>> 'closure' is a much-abused word.
>> This is a closure over foo's x variable:
> 
> How about namespaces?
> (...)

Nice!  Being a Python newbie I needed JCM's explanation to figure out
how it worked, though.  Nothing magic about classes at all...

-- 
Hallvard




More information about the Python-list mailing list