[New-bugs-announce] [issue21508] C API PyArg_ParseTuple doc is innacurate

Steve report at bugs.python.org
Wed May 14 16:33:43 CEST 2014


New submission from Steve:

PyArg_ParseTuple is defined as returning an "int", but the documentation talks about returning a true/false value, and failling on false.  In addition to being inaccurate, considering that most other functions fail on !=0 ("true"), it can lead to confusion.

Doc:
int PyArg_ParseTuple(PyObject *args, const char *format, ...)
Parse the parameters of a function that takes only positional parameters into local variables. Returns true on success; on failure, it returns false and raises the appropriate exception.

----------
assignee: docs at python
components: Documentation
messages: 218536
nosy: Banger, docs at python
priority: normal
severity: normal
status: open
title: C API PyArg_ParseTuple doc is innacurate
type: enhancement
versions: Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21508>
_______________________________________


More information about the New-bugs-announce mailing list