A suspected bug
aahz at panix.com
Sat Feb 17 21:32:57 EST 2001
In article <3A8F2968.9240BD8C at sympatico.ca>,
Colin J. Williams <cjw at sympatico.ca> wrote:
>It seems to me that the bit of code below should report
>a type inconsistency.
>X-Mozilla-Status: 0009 Sep 20 2000, 12:29:43) [MSC 32 bit (Intel)] on win32.
>Portions Copyright 1994-2000 Mark Hammond (MarkH at ActiveState.com) - see
>'Help/About PythonWin' for further copyright information.
>>>> print 2 > '1'
>>>> print 1 > '2'
What should the following code do:
foo = [1, '2']
Because Python lists can contain heterogeneous information, the
comparison operators *must* work between types.
--- Aahz (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Why doesn't "Just Say NO" include caffeine, nicotine, alcohol, Prozac,
and Ritalin? --Aahz
More information about the Python-list