Re: [IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Dino Viehland








Cool, keep them coming J  We may not get to them all
before 1.0 final, but it’s always good to know where we’re broken and what we
need to improve on.

 



From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Dahlbacka
Sent: Wednesday, July 05, 2006 2:13 PM
To: Discussion 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:







Thanks again for the bug
report.  I've opened bug 797  to track this one

 

http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=797

 

Is this currently blocking
you?  The reason I ask is we're only differing by a couple of things (the
property name being the obviously most egregious one) and it'd 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__







 

CPython2.4.1
>>>class foo(object):
...    __slots__ = ["bar"]
...
>>>foo.bar

>>> f = foo()
>>> f.bar
Traceback (most recent call last): 
  File "", line 1, in ?
AttributeError: bar




Ironpython beta8
>>>class foo(object):
...    __slots__ = ["bar"]
>>>foo.bar
 
>>> f = foo()
>>> f.bar
Traceback (most recent call last):
  File , line 0, in ##42
  File , line 0, in get_bar##43
AttributeError: '' object has no attribute 'bar' 








___
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


Re: [IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Simon Dahlbacka
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../SOn 7/6/06, 
Dino Viehland <[EMAIL PROTECTED]> wrote:













Thanks again for the bug report.  I've opened bug 797  to track
this one

 


http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=797

 

Is this currently blocking you?  The reason I ask is we're only
differing by a couple of things (the property name being the obviously most
egregious one) and it'd 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__



 

CPython2.4.1
>>>class foo(object):
...    __slots__ = ["bar"]
...
>>>foo.bar

>>> f = foo()
>>> f.bar
Traceback (most recent call last): 
  File "", line 1, in ?
AttributeError: bar




Ironpython beta8
>>>class foo(object):
...    __slots__ = ["bar"]
>>>foo.bar
 
>>> f = foo()
>>> f.bar
Traceback (most recent call last):
  File , line 0, in ##42
  File , line 0, in get_bar##43
AttributeError: '' object has no attribute 'bar' 







___users mailing listusers@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


Re: [IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Dino Viehland








Thanks again for the bug report.  I’ve opened bug 797  to track
this one

 

http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=797

 

Is this currently blocking you?  The reason I ask is we’re only
differing by a couple of things (the property name being the obviously most
egregious one) and it’d 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__



 

CPython2.4.1
>>>class foo(object):
...    __slots__ = ["bar"]
...
>>>foo.bar

>>> f = foo()
>>> f.bar
Traceback (most recent call last): 
  File "", line 1, in ?
AttributeError: bar




Ironpython beta8
>>>class foo(object):
...    __slots__ = ["bar"]
>>>foo.bar
 
>>> f = foo()
>>> f.bar
Traceback (most recent call last):
  File , line 0, in ##42
  File , line 0, in get_bar##43
AttributeError: '' object has no attribute 'bar' 






___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


[IronPython] __slots__ and __str__/__repr__

2006-07-05 Thread Simon Dahlbacka
CPython2.4.1>>>class foo(object):...    __slots__ = ["bar"]...>>>foo.bar>>> f = foo()>>> f.barTraceback (most recent call last):
  File "", line 1, in ?AttributeError: barIronpython beta8>>>class foo(object):...    __slots__ = ["bar"]>>>foo.bar
>>> f = foo()>>> f.barTraceback (most recent call last):  File , line 0, in ##42  File , line 0, in get_bar##43AttributeError: '' object has no attribute 'bar'

___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com