summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-12 20:49:19 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-12 20:49:19 (GMT)
commite5e298f8755c475e78f8cfc71ee0ea03c6674406 (patch)
treee5d854149357c5207ce32822ff2dee49542eef41 /Misc
parent7c2b66cc02a1c5e3433885640b7d4bd9e0ca5b8a (diff)
downloadcpython-e5e298f8755c475e78f8cfc71ee0ea03c6674406.zip
cpython-e5e298f8755c475e78f8cfc71ee0ea03c6674406.tar.gz
cpython-e5e298f8755c475e78f8cfc71ee0ea03c6674406.tar.bz2
Issue #4910 (1st patch of a series): fix int() and the corresponding
PyNumber_Int/PyNumber_Long API function so that it no longer attempts to call the __long__ method for conversion. Only the __int__ and __trunc__ methods are used. (This removes a major remaining use of the nb_long slot from the Python 3.x core.) Thanks Benjamin for review.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 461fe1d..9e7afee 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ What's New in Python 3.1 alpha 0
Core and Builtins
-----------------
+- Issue #4910: Builtin int() function and PyNumber_Long/PyNumber_Int API
+ function no longer attempt to call the __long__ slot to convert an object
+ to an integer. Only the __int__ and __trunc__ slots are examined.
+
- Issue #4893: Use NT threading on CE.
- Issue #4915: Port sysmodule to Windows CE.