Hello all,
We found an issue with comparing clr objects in lists.
IronPython 1.0.60816 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference('System.Drawing')
>>> from System.Drawing import Color
>>>
>>> Color.Red == Color.Red
True
>>> (Color.Red) == (Color.Red)
True
>>> [Color.Red] == [Color.Red]
False
>>> [(Color.Red)] == [(Color.Red)]
False
The same kind of comparison will work with IronPython objects.
Andrzej Krzywda
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com