]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Only call sq_repeat if the object does not have a nb_multiply slot. One
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 9 Aug 2002 15:46:50 +0000 (15:46 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 9 Aug 2002 15:46:50 +0000 (15:46 +0000)
commit10c18d59e14f00217c4bdd07ec140947468aad20
treee63981dea76cc0b0c52cb78af6930e286a1eaaa4
parent3aac4d25a234a3818909c1e76bbe5b450c903624
Only call sq_repeat if the object does not have a nb_multiply slot.  One
example of where this changes behavior is when a new-style instance
defines '__mul__' and '__rmul__' and is multiplied by an int.  Before
the change the '__rmul__' method is never called, even if the int is the
left operand.
Objects/intobject.c