What's the value of "None" between 2.1.1 and 1.5.2

Michael Abbott michael at rcp.co.uk
Fri Nov 30 11:25:00 EST 2001


"Steve Holden" <sholden at holdenweb.com> wrote in
news:wdMN7.6509$FP6.217220 at atlpnn01.usenetserver.com: 

>> 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. 

Sigh.  I understand.

Of course, if you are sorting a list of arbitrary datatypes using random 
datatypes as the key then you're in a state of sin.

I'm trying to figure out how to avoid this sinfulness (in general) in 
Python, but it's not easy!



More information about the Python-list mailing list