[issue21508] C API PyArg_ParseTuple doc is innacurate
Josh Rosenberg
report at bugs.python.org
Thu May 15 04:18:32 CEST 2014
Josh Rosenberg added the comment:
You'd prefer it say it returns 1 on success and 0 on failure? Or non-zero on success, zero on failure?
Is true/false that bad? After all, C says 0 is false, all other integer values are true; phrasing it as zero vs. non-zero may be slightly more technically accurate, but it's also a bit less readable, while 1 vs. 0 constrains the implementation (so you couldn't introduce a third "success but with additional info" state, similar to the third possible return from a "O&" converter function).
----------
nosy: +josh.rosenberg
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21508>
_______________________________________
More information about the Python-bugs-list
mailing list