Re: comparison between non-comparable objects

2013-01-07 Thread Kelvin Li
> When quoting some online source, please give a reference link. It took > me a while to find the following page with your quote in it: > > > http://docs.python.org/3.3/reference/expressions.html > >in section "6.9 Comparisons" Sorry ab

Re: comparison between non-comparable objects

2013-01-07 Thread Dave Angel
On 01/08/2013 12:28 AM, Kelvin Li wrote: > The language reference says: > > "...the choice whether one object [of built-in type] is considered > smaller or larger than another one is made arbitrarily..." When quoting some online source, please give a reference link. It took me a while to find the

comparison between non-comparable objects

2013-01-07 Thread Kelvin Li
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 -- htt