On 2/11/07, "Martin v. Löwis" <[EMAIL PROTECTED]> 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.

-Brett
_______________________________________________
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

Reply via email to