diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-10 02:12:43 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-10 02:12:43 (GMT) |
commit | de8b94c3e1154eb7778a6d5729129b6a57c365fb (patch) | |
tree | 2effb80775d5abf238626f99d062acae6ceb5438 /Misc | |
parent | 9caf9c040e4cf176eb926a077ae7bcdb6550160b (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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). |