Message84257
In Python 3.0,3.1a1:
>>> def f():
[(yield i) for i in range(10)]
>>> f()
>>> f() is None
True
>>> def f():
((yield i) for i in range(10))
>>> f()
>>> f() is None
True
However it is correct in Python 2.5,2.6
>>> def f():
... [(yield i) for i in range(10)]
...
>>> f()
<generator object f at 0x2b84bbe3ae60> |
|
Date |
User |
Action |
Args |
2009-03-27 12:25:15 | qwjqwj | set | recipients:
+ qwjqwj |
2009-03-27 12:25:15 | qwjqwj | set | messageid: <1238156715.07.0.356189133984.issue5577@psf.upfronthosting.co.za> |
2009-03-27 12:25:12 | qwjqwj | link | issue5577 messages |
2009-03-27 12:25:11 | qwjqwj | create | |
|