List comprehension confusion...

Erno Kuusela erno-news at
Tue Feb 11 17:01:27 CET 2003

In article <cf333042.0302101653.82fa89e at>,
kaz at (Kaz Kylheku) writes:
| Lulu of the Lotus-Eaters <mertz at> wrote in message
| news:<mailman.1044893710.18636.python-list at>...
|| 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