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. Regards, Martin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
