[Python-3000] how should we handle changes to the C API?

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 13 06:52:29 CET 2007

Brett Cannon schrieb:
>> I'm unclear why you want to warn in PyErr_GivenExceptionMatches:
>> shouldn't you rather warn when the exception is raised?
> Guido wants both so that you don't end up with useless values in the
> 'except' clause.  So yes, things are checked at the time of raising an
> exception, but that does not prevent someone from putting something in
> an 'except' clause that is useless.

Ok: but why does this check need to happen in PyErr_GivenExceptionMatchs?

The deprecation of string exceptions already happens in cmp_outcome;
if you check for bad base exceptions there also, you would find them
all, no? So I still don't see a need to modify GivenExceptionMatches.


More information about the Python-3000 mailing list