[Tutor] Beginner's question
Steven D'Aprano
steve at pearwood.info
Fri Nov 23 00:49:17 CET 2012
On 23/11/12 08:43, Dave Angel wrote:
> In other words
> 2> None
>
> will give the same answer each time, for a single run of a script in
> CPython, but it is unspecified what that answer will be, and may vary by
> version as well as implementation.
Correct. The ordering of None has changed at least once in CPython:
[steve at ando ~]$ python2.7 -c "print 2 > None"
True
[steve at ando ~]$ python1.5 -c "print 2 > None"
0
--
Steven
More information about the Tutor
mailing list