List comprehension confusion...

Erno Kuusela erno-news at erno.iki.fi
Tue Feb 11 11:01:27 EST 2003


In article <cf333042.0302101653.82fa89e at posting.google.com>,
kaz at ashi.footprints.net (Kaz Kylheku) writes:
| Lulu of the Lotus-Eaters <mertz at gnosis.cx> wrote in message
| news:<mailman.1044893710.18636.python-list at python.org>...
|| Python has closures, of course.
| Really? Has this thread been discussing the syntax of *imaginary*
| Python lambda construct or what? [snip]

perhaps you are confusing python lambdas with python closures (aka
nested scopes)? you can use nested scopes in conventional function
definitions too.

it's not exactly the same as closures in lisp, because
you cannot rebind the names inherited from outer scopes.

  -- erno




More information about the Python-list mailing list