Hi Larry, On Mon, Aug 5, 2013 at 10:48 AM, Larry Hastings <la...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com