Changes between Initial Version and Version 9 of Ticket #19108
- Timestamp:
- 08/30/15 20:45:14 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19108
-
Property
Status
changed from
new
toneeds_work
-
Property
Status
changed from
-
Ticket #19108 – Description
initial v9 1 1 Currently to implement comparison for an element, you either need to implement `_cmp_` or `_richcmp_`. For developers accustom to Python 3's method of implementing each comparison operator, we should have `_lt_`, `_le_`, etc. 2 3 Additionally, for most elements where comparison makes sense, there is the overwhelming notion that such a comparison is a partial order. Thus (unlike in pure python) we should make the default behavior extend the provided operators to a partial order (provided enough comparison operators are provided).