[IronPython] __slots__

2009-03-09 Thread Michael Foord
Hello guys, It looks like __slots__ and inheritance are a bit odd in IronPython (2.0.1). slots.py: class A(object): __slots__ = [] class B(A): __slots__ = [] i = B() i.test = 3 Running with IronPython and CPython: C:\compile\resolver-michaelC:\Program Files (x86)\IronPython

Re: [IronPython] __slots__

2009-03-09 Thread Curt Hagenlocher
I believe this is already fixed in the current (ie 2.6ish) source. On Mon, Mar 9, 2009 at 5:19 AM, Michael Foord fuzzy...@voidspace.org.ukwrote: Hello guys, It looks like __slots__ and inheritance are a bit odd in IronPython (2.0.1). slots.py: class A(object): __slots__ = [] class

Re: [IronPython] __slots__

2009-03-09 Thread Michael Foord
Curt Hagenlocher wrote: I believe this is already fixed in the current (ie 2.6ish) source. Any chance for 2.0.2? Michael On Mon, Mar 9, 2009 at 5:19 AM, Michael Foord fuzzy...@voidspace.org.uk mailto:fuzzy...@voidspace.org.uk wrote: Hello guys, It looks like __slots__ and

Re: [IronPython] __slots__

2009-03-09 Thread Curt Hagenlocher
On Mon, Mar 9, 2009 at 5:28 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Curt Hagenlocher wrote: I believe this is already fixed in the current (ie 2.6ish) source. Any chance for 2.0.2? That's Dino's call. The fix in 2.6 is actually a massive restructuring of some code, so the

Re: [IronPython] __slots__

2009-03-09 Thread Michael Foord
Curt Hagenlocher wrote: On Mon, Mar 9, 2009 at 5:28 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Curt Hagenlocher wrote: I believe this is already fixed in the current (ie 2.6ish) source. Any chance for 2.0.2? That's Dino's call. The fix in 2.6 is actually a

Re: [IronPython] __slots__

2009-03-09 Thread Dino Viehland
...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Monday, March 09, 2009 6:36 AM To: Discussion of IronPython Subject: Re: [IronPython] __slots__ Curt Hagenlocher wrote: On Mon, Mar 9, 2009 at 5:28 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Curt Hagenlocher wrote: I believe

Re: [IronPython] __slots__

2009-03-09 Thread Michael Foord
- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Monday, March 09, 2009 6:36 AM To: Discussion of IronPython Subject: Re: [IronPython] __slots__ Curt Hagenlocher wrote: On Mon, Mar 9, 2009 at 5:28 AM, Michael Foord

[IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Simon Dahlbacka
CPython2.4.1class foo(object):... __slots__ = [bar]...foo.barmember 'foo' of 'foo' objects f = foo() f.barTraceback (most recent call last): File stdin, line 1, in ?AttributeError: barIronpython beta8class foo(object):... __slots__ = [bar]foo.barproperty# foo on Object_1 f = foo()

Re: [IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Dino Viehland
most egregious one) and itd be nice to have an idea how we should prioritize this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Dahlbacka Sent: Wednesday, July 05, 2006 12:29 PM To: Discussion of IronPython Subject: [IronPython] __slots__ and __str__/__repr__

Re: [IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Simon Dahlbacka
prioritize this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Simon Dahlbacka Sent: Wednesday, July 05, 2006 12:29 PM To: Discussion of IronPython Subject: [IronPython] __slots__ and __str__/__repr__ CPython2.4.1 class foo(object): ... __slots__ = [bar] ... foo.bar member

Re: [IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Dino Viehland
of IronPython Subject: Re: [IronPython] __slots__ and __str__/__repr__ no, not at all, I just played around at the console trying to find bugs.. :) That said, it probably would suck pretty badly if I was using doctest or something similar.. /S On 7/6/06, Dino Viehland [EMAIL PROTECTED] wrote