[Tutor] Beginner's question

Dave Angel d at davea.name
Fri Nov 23 01:10:13 CET 2012


On 11/22/2012 06:57 PM, eryksun wrote:
> 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.

No, the question is what will Python3000 do.  Oh, wait, it's already
out, and it's called 3.x  Since it's explicitly an error there, it seems
good not to write new code using the misfeature.



-- 

DaveA



More information about the Tutor mailing list