@@ -15238,10 +15238,10 @@ Core and Builtins
1523815238
1523915239- Issue #5182: Removed memoryview.__str__.
1524015240
15241- - Issue #1717: Removed builtin cmp() function, dropped tp_as_async
15241+ - Issue #1717: Removed builtin cmp() function, dropped tp_compare
1524215242 slot, the C API functions PyObject_Compare and PyUnicode_Compare and
15243- the type definition cmpfunc. The tp_as_async slot has been renamed
15244- to tp_as_async , and is reserved for future usage.
15243+ the type definition cmpfunc. The tp_compare slot has been renamed
15244+ to tp_reserved , and is reserved for future usage.
1524515245
1524615246- Issue #1242657: the __len__() and __length_hint__() calls in several tools
1524715247 were suppressing all exceptions. These include list() and bytearray().
@@ -23981,7 +23981,7 @@ Build
2398123981C API
2398223982-----
2398323983
23984- - The documentation for the tp_as_async slot is updated to require that
23984+ - The documentation for the tp_compare slot is updated to require that
2398523985 the return value must be -1, 0, 1; an arbitrary number <0 or >0 is
2398623986 not correct. This is not yet enforced but will be enforced in
2398723987 Python 2.3; even later, we may use -2 to indicate errors and +2 for
@@ -25419,7 +25419,7 @@ Core language, builtins, and interpreter
2541925419 which is guaranteed to have the type that provided the function) and
2542025420 an integer indicating the opcode, which can be Py_LT, Py_LE, Py_EQ,
2542125421 Py_NE, Py_GT, Py_GE (for <, <=, ==, !=, >, >=), and returns a Python
25422- object, which may be NotImplemented (in which case the tp_as_async
25422+ object, which may be NotImplemented (in which case the tp_compare
2542325423 slot function is used as a fallback, if defined).
2542425424
2542525425 Classes can overload individual comparison operators by defining one
0 commit comments