summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-01 13:59:22 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-02-01 13:59:22 +0000
commitc008a176afdef8cb7afc0e48a8fb306f986964e8 (patch)
tree9cfaabad2089cf789a0ea4f0a17420cd28bc16a3 /Misc
parentf02e0aaafd2476948047f0ce904af947f02d18ea (diff)
downloadcpython-git-c008a176afdef8cb7afc0e48a8fb306f986964e8.tar.gz
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS8
1 files changed, 5 insertions, 3 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index bcc444a046..dca530c662 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,9 +12,11 @@ What's New in Python 3.1 alpha 0
Core and Builtins
-----------------
-- Issue #1717: Remove builtin cmp() function, C-API functions
- PyObject_Cmp and PyObject_Compare, and the support function
- Py_CmpToRich.
+- Issue #1717: Removed builtin cmp() function, dropped tp_compare
+ slot, the C API functions PyObject_Compare and PyUnicode_Compare and
+ the type definition cmpfunc. The tp_compare slot is reserved for
+ future usage. An attempt to initialize a type with a nonzero
+ tp_compare slot will raise TypeError.
- Issue #4707: round(x, n) now returns an integer if x is an integer.
Previously it returned a float.