I've opened CodePlex bug 922 for this one - this looks like it's related to some of the type changes or the method dispatch changes, but I'm not quite certain what broke it.
________________________________________ From: [EMAIL PROTECTED] On Behalf Of Giles Thomas Sent: Thursday, July 13, 2006 3:55 AM To: Discussion of IronPython Subject: [IronPython] Beta 9 __getitem__ Hi, We've found what looks like a difference between IronPython and CPython's parsing of argument lists for square brackets. This is a change from Beta 8, which behaved in the same way as CPython. CPython: Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class GetItemTest(object): ... def __getitem__(self, key): ... return key ... >>> m = GetItemTest() >>> print m[8,6] (8, 6) >>> IronPython: IronPython 1.0.2385 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> class GetItemTest(object): ... def __getitem__(self, key): ... return key ... >>> m = GetItemTest() >>> print m[8,6] Traceback (most recent call last): File , line 0, in <stdin>##16 TypeError: __getitem__() takes exactly 2 arguments (3 given) >>> Regards, Giles -- Giles Thomas Resolver Systems [EMAIL PROTECTED] _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com