[Tutor] True and 1 [was Re: use of the newer dict types]

Jim Mooney cybervigilante at gmail.com
Sun Jul 28 06:22:02 CEST 2013


On 27 July 2013 21:04, Steven D'Aprano <steve at pearwood.info> wrote:


> Comparison operators haven't depended on cmp() for a long time. You can
> google "rich comparison operators" for more info:

>>> [5,6,7,8] < [1,1,1,1]
False

My, not crashing on that was a surprise. (works in 3.3 and 2.7)

-- 
Jim


More information about the Tutor mailing list