This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author qwjqwj
Recipients qwjqwj
Date 2009-03-27.12:25:10
SpamBayes Score 0.0015249428
Marked as misclassified No
Message-id <1238156715.07.0.356189133984.issue5577@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2009-03-27 12:25:15qwjqwjsetrecipients: + qwjqwj
2009-03-27 12:25:15qwjqwjsetmessageid: <1238156715.07.0.356189133984.issue5577@psf.upfronthosting.co.za>
2009-03-27 12:25:12qwjqwjlinkissue5577 messages
2009-03-27 12:25:11qwjqwjcreate