Interestingly it happens for any exception class with any property: >>> BaseException().abc <OperationFailed object at 0x000000000000002C>
This is somehow related to the new-style exception support for 2.5 compatibility. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Fugate Sent: Tuesday, March 11, 2008 3:24 PM To: Discussion of IronPython Subject: Re: [IronPython] __dict__ of exception instances Strange... Filed as http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=15571 and thanks for reporting this! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Tuesday, March 11, 2008 3:16 PM To: Discussion of IronPython Subject: [IronPython] __dict__ of exception instances Hello guys, Attempting to access the '__dict__' attribute of a SyntaxError exception in IP2a8 *returns* an 'OperationFailed' object. The codeop module (Python standard library) compiles source code and *compares* the __dict__ attribute of SyntaxError exception instances... (I can work around this bug for the interactive interpreter...) Michael Foord http://www.manning.com/foord _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
