for the report!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord
Sent: Tuesday, February 19, 2008 8:31 AM
To: Discussion of IronPython
Subject: [IronPython] Overriding __iter__ in dict subclass
Bug in IronPython 1 and 2.
IronPython 2.0 Alpha
Bug in IronPython 1 and 2.
IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.832
Copyright (c) Microsoft Corporation. All rights reserved.
>>> class X(dict):
... __iter__ = lambda s: s.itervalues()
...
>>> a = X([(1, 'a'), (2, 'b'), (3, 'c')])
>>> for e in a:
... print e
...
1
2
3
>>>
Ir