This sucks.

Mel Wilson mwilson at the-wire.com
Fri Mar 7 21:23:16 EST 2003


In article <pan.2003.03.07.21.49.32.116409 at webone.com.au>,
"Simon Burton" <simonb at webone.com.au> wrote:
>On Fri, 07 Mar 2003 13:52:23 +0000, Steve Holden wrote:
>
>> "Tetsuo" <member16943 at dbforums.com> wrote in message
>> news:2614138.1047017673 at dbforums.com...
>>>
>>> No matter how much I look at my code, I can't see how 0>=10. I fixed a
>>> few things today, but the program still beyond fails.
>>>
>> It's all a question of what you're comparing:
>>
>>>>> 0 >= 10
>> 0
>>>>> "0" >= 10
>> 1
>>>>>
>>
>
>what the ? how/why are strings comparable to ints??
>
>oh my goly:
>
>>>> "">[]>{}>1
>1
>
>
>what's the use of this :) i think i'd rather have an exception than
>be able to compare these guys!

   Suppose you have a list filled with various strings,
numerics, what have you, and you want to sort it to find the
duplicate entries...

        Regards.        Mel.




More information about the Python-list mailing list