]> granicus.if.org Git - python/commit
Introduction to rich comparisons:
authorGuido van Rossum <guido@python.org>
Wed, 17 Jan 2001 15:20:39 +0000 (15:20 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 17 Jan 2001 15:20:39 +0000 (15:20 +0000)
commit5f284ce68e95e679b007298320d24e3e3905c43c
tree216f12ad2f4bcb4fe04904a66c8bdba7ca9dd314
parentc14fa303e109bd8dee7ef9c6a127fbd1fa1c5113
Introduction to rich comparisons:

- Removed the nb_add slot from the PyNumberMethods struct.

- Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.

- Added typedef richcmpfunc.

- Added tp_richcompare slot to PyTypeObject (replacing spare tp_xxx7).

- Added APIs PyObject_RichCompare() and PyObject_RichCompareBool().

- Added rich comparison operators Py_LT through Py_GE.
Include/object.h