◐ Shell
clean mode source ↗

Message 162023 - Python tracker

Message162023

Author flox
Recipients flox, josmiley
Date 2012-05-31.21:53:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338501188.84.0.948155398473.issue14972@psf.upfronthosting.co.za>
In-reply-to
Content
Simpler test case:

class A:
   x = 42
   y = [x for _ in '1']


The semantics of list comprehension changed with Python 3.
However, I do not see this specific behavior documented somewhere.

http://docs.python.org/dev/whatsnew/3.0.html#changed-syntax
History
Date User Action Args
2012-05-31 21:53:08floxsetrecipients: + flox, josmiley
2012-05-31 21:53:08floxsetmessageid: <1338501188.84.0.948155398473.issue14972@psf.upfronthosting.co.za>
2012-05-31 21:53:08floxlinkissue14972 messages
2012-05-31 21:53:08floxcreate