Andre Alexander Bell <p...@andre-bell.de> writes: > I occasionally use LCs, if they seem useful. However, what I don't like > about LCs is that they 'look-like' being a closed scope, while actually > they are in the scope of there call. Example: > >>>> i = 5 >>>> l = [i**2 for i in range(3)] >>>> i > 2 >
Although: p...@sleeper-service:~$ python3 Python 3.1.2 (r312:79147, Sep 27 2010, 09:57:50) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> i = 5 >>> l = [i**2 for i in range(3)] >>> i 5 -- http://mail.python.org/mailman/listinfo/python-list