[IronPython] function/method comparison
William Reade
william at resolversystems.com
Thu Dec 22 20:35:33 CET 2005
Hi, we have another bug report. This one's a bit longer...
In IronPythonConsole (0.9.6):
------------------------------------------------------------------
IronPython 0.9.6 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> class C:
... def f(self):
... pass
...
>>> c = C()
>>> c.f == c.f
False
>>> C.f == C.f
False
------------------------------------------------------------------
...and in IronPythonConsole (0.9.5):
------------------------------------------------------------------
IronPython 0.9.5 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> class C:
... def f(self):
... pass
...
>>> c = C()
>>> c.f == c.f
False
>>> C.f == C.f
True
------------------------------------------------------------------
We believe that both comparisons should evaluate to True.
Merry Christmas ;-)
William
More information about the Ironpython-users
mailing list