-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an easy way to provide total ordering now that __cmp__ is deprecated/gone #49729
Comments
That's the best version I recall seeing at activestate. Still, I'd deprecate and remove > and >= from mathematics. |
What is the purpose of this submission? What do you want to happen about |
(As I recall) in python-dev mailing list Ray claimed he could clean up a I haven't used the redundant >, >= comparisons operators in code since |
Then why was this classified as a documentation issue? And why did Mart |
As the documentation section of
Raymond's recipe at http://code.activestate.com/recipes/576685/ looks |
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?
I see. So it's a feature request. |
When functools.total_ordering (whether it lands in functools is open) "There are no implied relationships among the comparison operators. The However, given a class defining one or more ordering methods, |
See r79730. Leaving open until tests are written and all is forward ported to 3.2. |
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 |
Yes, it's a standard mathematics term. |
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 |
http://en.wikipedia.org/wiki/Total_order For pair of items from a set, (that's the total) On Mon, 2010-04-05 at 19:46 +0000, Éric Araujo wrote:
|
Applied in r79810 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: