diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-08-09 15:20:48 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-08-09 15:20:48 +0000 |
commit | 3bc3f28dbec7ec3f221d9293e05e0cf1ba5f20aa (patch) | |
tree | 81296a81fc0e196a4ca8d09ad6e1d6a5f132fd9f /Python/sysmodule.c | |
parent | a3502703029dbe09c705417c56191784e56a062e (diff) | |
download | cpython-git-3bc3f28dbec7ec3f221d9293e05e0cf1ba5f20aa.tar.gz |
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.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions