PEP 285: Adding a bool type
gbreed at cix.compulink.co.uk
gbreed at cix.compulink.co.uk
Fri Apr 5 06:33:46 EST 2002
Robin Becker wrote:
> heh heh, at last someone with a sense of humour. Of course now we can
> argue whether it's 1 or True that 'Guido' > 'God'
>
> and at least no one mentioned Hitler. duh!
It's fine so long as you properly define the comparison.
>>> 'van Rossum' > 'Hitler'
1
and
>>> 'Guido' > 'Adolf'
1
so it doesn't really matter that
>>> 'Guido' > 'Hitler'
0
Graham
More information about the Python-list
mailing list