]> granicus.if.org Git - python/commit
Issue #1717, continued: remove PyObject_Compare and Py_CmpToRich declarations
authorMark Dickinson <dickinsm@gmail.com>
Sun, 1 Feb 2009 13:59:22 +0000 (13:59 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 1 Feb 2009 13:59:22 +0000 (13:59 +0000)
commitc008a176afdef8cb7afc0e48a8fb306f986964e8
tree9cfaabad2089cf789a0ea4f0a17420cd28bc16a3
parentf02e0aaafd2476948047f0ce904af947f02d18ea
Issue #1717, continued:  remove PyObject_Compare and Py_CmpToRich declarations
from object.h; don't inherit tp_compare slot on subclasses; and raise TypeError
when initializing a type that has a nonzero tp_compare slot.  Fix up
comparison-related comments in object.c and code.h.
Include/code.h
Include/object.h
Misc/NEWS
Objects/object.c
Objects/typeobject.c