Hi guys,<br><br>Another issue from our upgrade to IPy2:<br>class thing(list):<br> def __init__(self, value):<br> self.value = value<br><br> def __mul__(self, other):<br> return self.value * other<br>t1 = thing(3.0)<br>
print t1 * 3.0<br><br>results in:<br><br>Traceback (most recent call last):<br> File "testmat.py", line 12, in testmat.py<br> File "Microsoft.Scripting.Core", line unknown, in New<br> File "Microsoft.Scripting.Core", line unknown, in New<br>
File "Microsoft.Scripting.Core", line unknown, in ValidateArgumentTypes<br>ValueError: Expression of type 'System.Double' cannot be used for constructor parameter of type 'System.Object'<br><br>
<br>This has the potential to cause us significant pain since a third-party (pure python) library that we use relies on this behaving correctly.<br><br>We'll raise this as a bug on codeplex.<br><br>Thanks<br>Glenn & Tom<br>