]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
A fix for SF bug #461546 (bug in long_mul).
authorGuido van Rossum <guido@python.org>
Sat, 15 Sep 2001 03:14:32 +0000 (03:14 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 15 Sep 2001 03:14:32 +0000 (03:14 +0000)
commit7e35d57c0cd94b136d613129cb22a2b4252aa008
tree04cbba26e20c258dff63ab627b21906641d5c58a
parent0891ac017dd02f9c592c40940dff6b050523be00
A fix for SF bug #461546 (bug in long_mul).

Both int and long multiplication are changed to be more careful in
their assumptions about when one of the arguments is a sequence: the
assumption that at least one of the arguments must be an int (or long,
respectively) is still held, but the assumption that these don't smell
like sequences is no longer true: a subtype of int or long may well
have a sequence-repeat thingie!
Lib/test/test_descr.py
Objects/intobject.c
Objects/longobject.c