comparing strings and ints

Grant Edwards grant at nowhere.
Fri Apr 14 13:53:30 EDT 2000


In article <m3u2h6hmcn.fsf at atrus.jesus.cam.ac.uk>, Michael Hudson wrote:
>grant at nowhere. (Grant Edwards) writes:
>
>> No, it said "_consistently_ but arbitrarily" [emph added].
>> That means that you don't which result you will get when a
>> string and an int are compared, but you know you will always
>> get the _same_ result.
>
>That's one reading; however I'd have thought a more likely one would
>be to specify that if x>y is true once for some x and y of differing
>types, then x>y is true each subsequent time it is evaluated.

That's a reasonable (and more conservative/safer)
interpretation.

>can-I-have-a-language-lawyer-brownie-point?-ly y'rs

Sure, take one out of stock.

-- 
Grant Edwards                   grante             Yow!  .. I'll make you
                                  at               an ASHTRAY!!
                               visi.com            



More information about the Python-list mailing list