Message243987
Functions that parse arguments like PyArg_ParseTupleAndKeywords() have several formatters that fill in C strings, e.g. "s".
In the C API doc:
https://docs.python.org/3.5/c-api/arg.html#c.PyArg_ParseTupleAndKeywords
There should be an explicit mention of whether this memory needs to be free (in this case: No) and if not, how this memory is managed (in this case: This refers to a buffer managed by the string object itself). Because of questions of encoding, it raises questions where this memory lies, and what its lifetime is (in this case: That of the owning string object from the caller).
This deserves an explicit mention, even if brief. |
|
Date |
User |
Action |
Args |
2015-05-24 15:27:38 | blais | set | recipients:
+ blais, docs@python |
2015-05-24 15:27:38 | blais | set | messageid: <1432481258.46.0.49462668629.issue24278@psf.upfronthosting.co.za> |
2015-05-24 15:27:38 | blais | link | issue24278 messages |
2015-05-24 15:27:37 | blais | create | |
|