Author blais
Recipients blais, docs@python
Date 2015-05-24.15:27:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432481258.46.0.49462668629.issue24278@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-05-24 15:27:38blaissetrecipients: + blais, docs@python
2015-05-24 15:27:38blaissetmessageid: <1432481258.46.0.49462668629.issue24278@psf.upfronthosting.co.za>
2015-05-24 15:27:38blaislinkissue24278 messages
2015-05-24 15:27:37blaiscreate