Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36413

comparison between non-comparable objects

Subject comparison between non-comparable objects
From Kelvin Li <ltwisabc@gmail.com>
Date 2013-01-07 21:28 -0800
Newsgroups comp.lang.python
Message-ID <mailman.261.1357622895.2939.python-list@python.org> (permalink)

Show all headers | View raw


The language reference says:

"...the choice whether one object [of built-in type] is considered
smaller or larger than another one is made arbitrarily..."

but that seems to be Python 2 behavior; Python 3 apparently raises a
TypeError. Does the documentation need updating?

Thanks,
Kelvin

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

comparison between non-comparable objects Kelvin Li <ltwisabc@gmail.com> - 2013-01-07 21:28 -0800

csiph-web