Hi,
Py2.7 final gives me this:
Python 2.7 (r27:82500, Jul 5 2010, 13:37:06)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> {i for i in range(10)}; i
set([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'i' is not defined
>>> {i:i for i in range(10)}; i
{0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'i' is not defined
List comprehensions have not changed:
>>> [i for i in range(10)]; i
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
9
I know, I have asked this more than once already, but I think this is
finally enough of a reason to fix the current behaviour also in Cython.
Objections?
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev