]> granicus.if.org Git - python/commit
Issue #4910 (1st patch of a series): fix int() and the corresponding
authorMark Dickinson <dickinsm@gmail.com>
Mon, 12 Jan 2009 20:49:19 +0000 (20:49 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 12 Jan 2009 20:49:19 +0000 (20:49 +0000)
commite5e298f8755c475e78f8cfc71ee0ea03c6674406
treee5d854149357c5207ce32822ff2dee49542eef41
parent7c2b66cc02a1c5e3433885640b7d4bd9e0ca5b8a
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.
Lib/test/test_long.py
Misc/NEWS
Objects/abstract.c