What's the value of "None" between 2.1.1 and 1.5.2
sholden at holdenweb.com
Fri Nov 30 14:59:21 CET 2001
"Michael Abbott" <michael at rcp.co.uk> wrote in message
news:Xns91697EB73ACCmichaelrcpcouk at 188.8.131.52...
> 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.
More information about the Python-list