Message218536
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. |
|
Date |
User |
Action |
Args |
2014-05-14 14:33:43 | Banger | set | recipients:
+ Banger, docs@python |
2014-05-14 14:33:43 | Banger | set | messageid: <1400078023.63.0.359608332224.issue21508@psf.upfronthosting.co.za> |
2014-05-14 14:33:43 | Banger | link | issue21508 messages |
2014-05-14 14:33:43 | Banger | create | |
|