On May 27, 2005, at 10:42 AM, Brian Lloyd wrote: >> 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:
Only in the trivial case.. >>> str(IndexError("reason here")) 'reason here' -bob _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet