What's the value of "None" between 2.1.1 and 1.5.2
Steve Holden
sholden at holdenweb.com
Fri Nov 30 08:59:21 EST 2001
"Michael Abbott" <michael at rcp.co.uk> wrote in message
news:Xns91697EB73ACCmichaelrcpcouk at 194.238.50.13...
> Skip Montanaro <skip at pobox.com> wrote in
> news:mailman.1007090560.18985.python-list at python.org:
>
> > You were relying on undocumented behavior. There is no obvious ordering
> > between integers and None.
> >
>
> So why don't comparisons of this type generate an exception?
Because comparisons are used in sorts, for example, and it wasn't considered
helpful for sorts of lists of arbitrary datatypes to raise errors.
regards
Steve
--
http://www.holdenweb.com/
More information about the Python-list
mailing list