diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-02 20:36:42 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-02 20:36:42 (GMT) |
commit | e94c679df0b632bc929936ca54f0de006e1a6dc2 (patch) | |
tree | 79c6f9c819bb350a87917880ce5267394e64db79 /Misc | |
parent | 438cecd3de1388075d921a1b84121a33f10844eb (diff) | |
download | cpython-e94c679df0b632bc929936ca54f0de006e1a6dc2.zip cpython-e94c679df0b632bc929936ca54f0de006e1a6dc2.tar.gz cpython-e94c679df0b632bc929936ca54f0de006e1a6dc2.tar.bz2 |
Issue #1717: rename tp_compare to tp_reserved. I'll change the
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -14,9 +14,8 @@ Core and Builtins - 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. + the type definition cmpfunc. The tp_compare slot has been renamed + to tp_reserved, and is reserved for future usage. - Issue #4707: round(x, n) now returns an integer if x is an integer. Previously it returned a float. |