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

"Martin v. Löwis" martin at v.loewis.de
Sun Feb 11 19:20:12 CET 2007

Brett Cannon schrieb:
> My specific need is that PyErr_GivenExceptionMatches() does not have
> an exception return value.  This sucks for me in 2.6 for deprecating
> catching string exceptions, but it sucks more in 3.0 since only
> subclasses of BaseException can be raised.  But not allowing -1 to
> represent that an error occurred is a pain for anyone who wants to
> properly use the function.

I don't understand what exceptional value you are talking about.
If the given object cannot be an exception, it clearly doesn't
match, so the outcome should be zero (not an error).


More information about the Python-3000 mailing list