Hi guys,<br><br>Another issue from our upgrade to IPy2:<br>class thing(list):<br>&nbsp;&nbsp;&nbsp; def __init__(self, value):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.value = value<br><br>&nbsp;&nbsp;&nbsp; def __mul__(self, other):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp; File &quot;testmat.py&quot;, line 12, in testmat.py<br>&nbsp; File &quot;Microsoft.Scripting.Core&quot;, line unknown, in New<br>&nbsp; File &quot;Microsoft.Scripting.Core&quot;, line unknown, in New<br>
&nbsp; File &quot;Microsoft.Scripting.Core&quot;, line unknown, in ValidateArgumentTypes<br>ValueError: Expression of type &#39;System.Double&#39; cannot be used for constructor parameter of type &#39;System.Object&#39;<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&#39;ll raise this as a bug on codeplex.<br><br>Thanks<br>Glenn &amp; Tom<br>