[IronPython] AttributeError problem
Dino Viehland
dinov at exchange.microsoft.com
Mon Aug 7 17:28:12 CEST 2006
Thanks for the bug report. I've opened CodePlex bug #1689 to track this (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1689) .
Just to make sure we get the correct priority - is this blocking you? My only concern is that the fix here could be a little destabilizing. The point when we're catching the wibble exception and the point where we re-throw the fish exception are rather disconnected. We'd like to minimize the churn now that we're at the end game so if it's not a blocker it might be better to wait for this one until 1.01. If it is a blocker let us know and we'll take a closer look at it. Thanks!
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jan Szumiec
Sent: Monday, August 07, 2006 3:22 AM
To: users at lists.ironpython.com
Subject: [IronPython] AttributeError problem
Hi,
We've discovered a bug in 1.0RC1. The behavior between CPython and IP differs.
Code:
class AttributeTest(object):
def __getattr__(self, name):
print 'hello'
raise AttributeError('wibble')
AttributeTest().fish
IronPython trace:
hello
Traceback (most recent call last):
File c:\development\Resolver\CSharp\RSIronPython\Engine.cs, line 52, in RunPythonFile
File , line 0, in C:\development\att Test.py##1
AttributeError: fish
CPython trace:
C:\development>"att Test.py"
hello
Traceback (most recent call last):
File "C:\development\att Test.py", line 7, in ?
AttributeTest().fish
File "C:\development\att Test.py", line 4, in __getattr__
raise AttributeError('wibble')
AttributeError: wibble
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list