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
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
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
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
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
...@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
-
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
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()
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__
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
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
11 matches
Mail list logo