[Python.NET] Small improvment for CLR exceptions
Bob Ippolito
bob at redivi.com
Sun May 29 06:56:39 CEST 2005
On May 27, 2005, at 10:42 AM, Brian Lloyd wrote:
>> Sorry this was posted in wring thread.
>>
>> On 5/25/05, Roman Yakovenko <roman.yakovenko at gmail.com> 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
More information about the PythonDotNet
mailing list