[Ironpython-users] DynamicObjects.TryConvert not called in IronPython?

zxpatric zxpatric at gmail.com
Fri Jun 24 21:59:56 CEST 2011


Hi,

I am doing the similar thing as in "
http://blogs.msdn.com/b/csharpfaq/archive/2009/10/19/dynamic-in-c-4-0-creating-wrappers-with-dynamicobject.aspx"
to first convert any member into an object and then expect the
object.TryConvert to handle the final convert. However, what is working in
C# as double a = obj.M1.M2.M3 (return instance of Type C3, which has the
TryConvert to convert it to double type) doesn't work in IronPython. The
last step of converting instance of C3 to double in C3.TryConvert never
happens.  I am currently using IronPython 2.7.0.40. Is this a known issue
that has been addressed in 2.7.1 Beta?

Thanks
-Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110624/e58beb65/attachment.html>


More information about the Ironpython-users mailing list