[IronPython] Equals between RuntimeType and python type

Dino Viehland dinov at microsoft.com
Sun Mar 21 20:18:01 CET 2010


It's a bug - It's already fixed for the final 2.6.1 release.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Idan Zaltzberg
Sent: Sunday, March 21, 2010 7:11 AM
To: users at lists.ironpython.com
Subject: [IronPython] Equals between RuntimeType and python type

Hi,
I am using Ipy 2.6 (final).
I tried to do the following code and got some puzzling results:

from System import Int64
x = Int64()
print type(x) == x.GetType() # return True
print type(x) != x.GetType() # also returns True!

Is this a bug or a am I missing something?

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


More information about the Ironpython-users mailing list