[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

Nick Coghlan report at bugs.python.org
Thu Apr 15 15:59:10 CEST 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

The corner case I was talking about was the one where you actually *want* the old, more restrictive behaviour (i.e. you specifically want to receive 'x.y.Exception' and receiving 'a.b.Exception' instead should fail), but still want to ignore the details of the exception string representation.

With this change in place, that corner case could be handled fairly easily by using the ELLIPSIS option instead of IGNORE_EXCEPTION_DETAIL (or else mandating the exception details as well the type).

This change trips my "feature" meter, so it's probably too late for 2.7 (adding Benjamin to confirm), but definitely a good candidate for 3.2 later in the year.

----------
nosy: +benjamin.peterson
versions: +Python 3.2 -Python 3.1

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


More information about the Python-bugs-list mailing list