Author mark.dickinson
Recipients davidhalter, gwrtheyrn, mark.dickinson, pyos, r.david.murray, rhettinger
Date 2012-12-28.16:54:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356713678.32.0.987379268794.issue16791@psf.upfronthosting.co.za>
In-reply-to
Content
And here's a non-infinite example where CPython and PyPy differ.

Python 2.7.3 |EPD 7.3-1 (32-bit)| (default, Apr 12 2012, 11:28:34) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "credits", "demo" or "enthought" for more information.
>>> b = [1]
>>> b += (x+1 for x in b if x < 5)
>>> b
[1, 2, 3, 4, 5]
>>> 
iwasawa:cpython mdickinson$ pypy-c
-bash: pypy-c: command not found
iwasawa:cpython mdickinson$ /opt/local/bin/pypy-c
Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jun 09 2012, 14:24:15)
[PyPy 1.9.0] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``'that's definitely a case of
"uh????"'''
>>>> b = [1]
>>>> b += (x+1 for x in b if x < 5)
>>>> b
[1, 2]
History
Date User Action Args
2012-12-28 16:54:38mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, r.david.murray, gwrtheyrn, davidhalter, pyos
2012-12-28 16:54:38mark.dickinsonsetmessageid: <1356713678.32.0.987379268794.issue16791@psf.upfronthosting.co.za>
2012-12-28 16:54:38mark.dickinsonlinkissue16791 messages
2012-12-28 16:54:38mark.dickinsoncreate