[Python-Dev] The Return Of Argument Clinic
Armin Rigo
arigo at tunes.org
Mon Aug 5 11:42:02 CEST 2013
Hi Larry,
On Mon, Aug 5, 2013 at 10:48 AM, Larry Hastings <larry at hastings.org> wrote:
> Question 4: Return converters returning success/failure?
The option generally used elsewhere is: if we throw an exception, we
return some special value; but the special value doesn't necessarily
mean by itself that an exception was set. It's a reasonable solution
because the caller only needs to call PyErr_Occurred() for one special
value, rather than every time. See for example any call to
PyFloat_AsDouble().
A bientôt,
Armin.
More information about the Python-Dev
mailing list