Changes between Initial Version and Version 9 of Ticket #19108


Ignore:
Timestamp:
08/30/15 20:45:14 (7 years ago)
Author:
ohanar
Comment:

Yes, you are right.

Thinking about it a bit more, I think it would make better sense to split off the partial/total order stuff into metaclasses, I'll split those into another ticket when I get around it.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19108

    • Property Status changed from new to needs_work
  • Ticket #19108 – Description

    initial v9  
    11Currently 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).