[issue2373] Raise Py3K warnings for comparisons that changed
Steven Bethard
report at bugs.python.org
Tue Mar 18 07:53:07 CET 2008
Steven Bethard <steven.bethard at gmail.com> added the comment:
I'm attaching a patch that handles object comparisons, type comparisons,
cell comparisons, and dict comparisons. All the tests pass (including
the new ones I've added) but I'd appreciate it if someone could take a
second look.
Other things still remaining to be done:
* Someone needs to decide the correct behavior for method-wrappers
(descrobject.c), implement that in Python 2.6 and forward port it to 3.0.
* The following objects have a good tp_richcompare in Python 3.0:
codeobject.c, methodobject.c, sliceobject.c. Those tp_richcompares
should be backported to 2.6. Then a warning can be added for LE, LT, GE
and GT (with no warning for EQ or NE which won't change).
I may have a little time tomorrow to work on the latter task.
----------
keywords: +patch
Added file: http://bugs.python.org/file9722/changed_comparisons.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2373>
__________________________________
More information about the Python-bugs-list
mailing list