[IronPython] strange behavior with CLR types

Arman Bostani arman at twinsun.com
Wed Mar 29 00:08:04 CEST 2006


The behavior of comparison with CLR types is not consistent.  I'm using 
beta4 on Windows:

 >>> from System import *
 >>> UInt64.Parse('0') == 0
False
 >>> UInt32.Parse('0') == 0
False
 >>> UInt16.Parse('0') == 0
False
 >>> Int16.Parse('0') == 0
False
 >>> Int32.Parse('0') == 0
True
 >>> Int64.Parse('0') == 0
True
 >>>

-arman



More information about the Ironpython-users mailing list