commit | 3bc3f28dbec7ec3f221d9293e05e0cf1ba5f20aa | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Fri Aug 09 15:20:48 2002 +0000 |
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Fri Aug 09 15:20:48 2002 +0000 |
tree | 81296a81fc0e196a4ca8d09ad6e1d6a5f132fd9f | |
parent | a3502703029dbe09c705417c56191784e56a062e [diff] |
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.