commit | 5f284ce68e95e679b007298320d24e3e3905c43c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 17 15:20:39 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 17 15:20:39 2001 +0000 |
tree | 216f12ad2f4bcb4fe04904a66c8bdba7ca9dd314 | |
parent | c14fa303e109bd8dee7ef9c6a127fbd1fa1c5113 [diff] |
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.