Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> [s for s in [1, 2,3]] [1, 2, 3] >>> s Traceback (most recent call last): File "", line 1, in s NameError: name 's' is not defined >>>
Can't check right now, but it could be fixed even in 2.7
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
ReplyDeleteType "copyright", "credits" or "license()" for more information.
>>> [s for s in [1, 2,3]]
[1, 2, 3]
>>> s
Traceback (most recent call last):
File "", line 1, in
s
NameError: name 's' is not defined
>>>
Can't check right now, but it could be fixed even in 2.7
Not fixed in 2.7.1
ReplyDelete