[docs] [issue13522] Document error return values for PyFloat_* and PyComplex_*

Mark Dickinson report at bugs.python.org
Sat Dec 3 13:13:07 CET 2011

Mark Dickinson <dickinsm at gmail.com> added the comment:

Well, it's sort of documented implicitly:  from


"In general, when a function encounters an error, it sets an exception, discards any object references that it owns, and returns an error indicator.  If not documented otherwise, this indicator is either NULL or -1, depending on the function’s return type."

versions:  -Python 3.1

Python tracker <report at bugs.python.org>

More information about the docs mailing list