__imul__ does not work !

Alexander Schmolck a.schmolck at gmx.net
Tue Oct 15 13:03:54 EDT 2002


Uwe Schmitt <uwe.schmitt at procoders.net> writes:

> 	  File "bug2.py", line 30, in ?
> 	    b *= a
> 	TypeError: can't multiply sequence to non-int
> 
> Is this a bug ??

It used to be.  Should work fine with 2.2.2, though. If you can't update, but
have to stick to an older version not inheriting from object will also do the
trick.

alex





More information about the Python-list mailing list