[Tutor] Beginner's question

eryksun eryksun at gmail.com
Fri Nov 23 00:57:34 CET 2012


On Thu, Nov 22, 2012 at 6:49 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>
>> 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

LOL... version 1.5. Anyway, there will never be a version 2.8, so the
question is really what Jython, IronPython, and other 2.x
implementations do.


More information about the Tutor mailing list