> Sorry this was posted in wring thread. > > On 5/25/05, Roman Yakovenko <[EMAIL PROTECTED]> wrote: > > Hi. Bryan could you add __str__ function to all CLR exceptions ? > > It will improve usability of this exception with python > unittest package. > > > > Thanks
I guess I'm unclear on the goal. Looking at the built-in Python exceptions, they have a __repr__, but __str__ returns an empty string: >>> e = IndexError() >>> repr(e) '<exceptions.IndexError instance at 0x07016AF8>' >>> str(e) '' CLR exceptions currently have the same behavior: >>> e = CLR.System.NullReferenceException() >>> repr(e) '<CLR.System.NullReferenceException object at 0x070158B0>' >>> str(e) '' I'm happy to add things to make life easier for folks -- I just don't understand what you're asking for yet :) What would you want/expect to get from str(e) on a CLR exception? Brian Lloyd [EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet