[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r79810 Thanks for the suggestion. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread David W. Lambert
David W. Lambert added the comment: http://en.wikipedia.org/wiki/Total_order For pair of items from a set, (that's the total) if a <= b and b <= c then a <= c (part of the order) if a <= b and b <= a then a compares the same as b, a == b, (the other part of the order) On Mon, 2010-

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the link. Please include it in the future doc if you judge it useful for a large number of users. I’m still wondering if “total_ordering” is the best name for a decorator that fills the blanks to provide total ordering. Regards -- _

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: http://en.wikipedia.org/wiki/Total_order -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, it's a standard mathematics term. http://en.wikipedia.org/wiki/Total_order -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Éric Araujo
Éric Araujo added the comment: Hello Small documentation question: Does the expression “total ordering” have established usage in maths or computer science? Its meaning is not obvious to the non-maths person that I am. Regards -- ___ Python track

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: See r79730. Leaving open until tests are written and all is forward ported to 3.2. -- versions: -Python 3.1 ___ Python tracker ___

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-04-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-14 Thread Mart Sõmermaa
Mart Sõmermaa added the comment: > This is the 2.6 version. What about the 3.0 version in > http://docs.python.org/3.0/reference/datamodel.html#object.__lt__ > needs to be updated? When functools.total_ordering (whether it lands in functools is open) lands that section should be amended in the

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: > As the documentation section of > http://docs.python.org/reference/datamodel.html#object.__lt__ needs to > be updated as well to mark the eventual solution as the recommended easy > way to provide total ordering. This is the 2.6 version. What about the 3.0 v

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-13 Thread Mart Sõmermaa
Mart Sõmermaa added the comment: > Then why was this classified as a documentation issue? As the documentation section of http://docs.python.org/reference/datamodel.html#object.__lt__ needs to be updated as well to mark the eventual solution as the recommended easy way to provide total ordering

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: Then why was this classified as a documentation issue? And why did Mart Sömmermaa submit it, and not Raymond? AFAICT, Raymond said he would propose something when it's ready (which I assume it currently isn't). -- _

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-12 Thread David W. Lambert
David W. Lambert added the comment: (As I recall) in python-dev mailing list Ray claimed he could clean up a cited active state recipe to address this issue. He succeeded to the extent I'm aware---he's the author of http://code.activestate.com/recipes/576685/. I haven't used the redundant >, >

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: What is the purpose of this submission? What do you want to happen about Python? -- nosy: +loewis ___ Python tracker ___ __

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-12 Thread David W. Lambert
David W. Lambert added the comment: That's the best version I recall seeing at activestate. Still, I'd deprecate and remove > and >= from mathematics. -- nosy: +LambertDW ___ Python tracker ___

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-12 Thread Mart Sõmermaa
New submission from Mart Sõmermaa : See http://mail.python.org/pipermail/python-dev/2009-March/087000.html and http://code.activestate.com/recipes/576685/ . -- assignee: georg.brandl components: Documentation, Library (Lib) messages: 83490 nosy: georg.brandl, mrts, rhettinger severity: n