summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-10 02:12:43 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-10 02:12:43 (GMT)
commitde8b94c3e1154eb7778a6d5729129b6a57c365fb (patch)
tree2effb80775d5abf238626f99d062acae6ceb5438 /Misc
parent9caf9c040e4cf176eb926a077ae7bcdb6550160b (diff)
downloadcpython-de8b94c3e1154eb7778a6d5729129b6a57c365fb.zip
cpython-de8b94c3e1154eb7778a6d5729129b6a57c365fb.tar.gz
cpython-de8b94c3e1154eb7778a6d5729129b6a57c365fb.tar.bz2
Fix SF bug #683467, 'int' ability to generate longs not inherited
When subclassing from an int but not overriding __new__, long values were not converted properly. Try to convert longs into an int.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b0683ee..24f318c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 2.3 alpha 2?
Core and builtins
-----------------
+- int subclasses can be initialized with longs if the value fits in an int.
+ See SF bug #683467.
+
- long(string, base) takes time linear in len(string) when base is a power
of 2 now. It used to take time quadratic in len(string).