Message80830
Here's stage 2: remove uses of tp_compare from Objects and Modules, and
replace uses of PyObject_Compare with PyObject_RichCompareBool.
PyObject_Compare, cmp and friends still haven't been removed at this
stage.
In detail:
- for cell objects, method wrapper objects, PyTclObjects, and
PyST_Objects (in the parser module), remove the defined tp_compare
methods and implement tp_richcompare instead.
- add tests for cell comparisons and PyST_Object comparisons;
reenable
tests for method wrapper comparisons. There are no tests for the
PyTclObject comparisons.
- remove tp_compare method from sets (all it did was emit an error
message about the nonsensicality of doing order comparisons on sets)
- in Objects/rangeobject.c and ElementTree, replace uses of
PyObject_Compare with PyObject_RichCompareBool |
|
Date |
User |
Action |
Args |
2009-01-30 17:38:51 | mark.dickinson | set | recipients:
+ mark.dickinson, lemburg, brett.cannon, georg.brandl, rhettinger, amaury.forgeotdarc, pitrou, christian.heimes, benjamin.peterson, gpolo |
2009-01-30 17:38:50 | mark.dickinson | set | messageid: <1233337130.4.0.686120307796.issue1717@psf.upfronthosting.co.za> |
2009-01-30 17:38:48 | mark.dickinson | link | issue1717 messages |
2009-01-30 17:38:47 | mark.dickinson | create | |
|