[issue7309] crasher in str(Exception())

Walter Dörwald report at bugs.python.org
Wed Feb 24 16:22:05 CET 2010


Walter Dörwald <walter at livinglogic.de> added the comment:

On 24.02.10 15:28, Eric Smith wrote:

> Eric Smith <eric at trueblade.com> added the comment:
> 
> Fixed:
> 
> trunk: r78418
> release26-maint: r78419
> 
> Still working on porting to py3k and release31-maint.

A much better solution would IMHO be to forbid setting the encoding,
object and reason attributes to objects of the wrong type in the first
place. Unfortunately this would require an extension to PyMemberDef for
the T_OBJECT and T_OBJECT_EX types.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7309>
_______________________________________


More information about the Python-bugs-list mailing list