[Python-3000] how should we handle changes to the C API?
brett at python.org
Mon Feb 12 23:11:05 CET 2007
On 2/11/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Brett Cannon schrieb:
> > Right, but I wanted to be able to raise a warning. If that warning is
> > supposed to be treated as an exception the caller needs to let that
> > propagate. RIght now PyErr_GivenExceptionMatches() can in no way let
> > the caller know that fact
> 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.
More information about the Python-3000