[PATCH] cext: cast s# arguments of Py_BuildValue() to Py_ssize_t

Pulkit Goyal 7895pulkit at gmail.com
Wed Apr 10 06:33:05 EDT 2019


On Wed, Apr 10, 2019 at 1:47 AM Yuya Nishihara <yuya at tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1554814777 -32400
> #      Tue Apr 09 21:59:37 2019 +0900
> # Node ID 1792bd9807b6ff434df207e33b94d2ea32555b3e
> # Parent  864f9f63d3ed371ab3d283911790d4f990926499
> cext: cast s# arguments of Py_BuildValue() to Py_ssize_t
>
> The doc doesn't state that "s#" of Py_BuildValue() is controlled by
> PY_SSIZE_T_CLEAN (unlike the one for PyArg_ParseTuple()), but actually
> it's switched to Py_ssize_t.
>
> https://docs.python.org/2/c-api/arg.html#c.Py_BuildValue
> https://github.com/python/cpython/blob/2.7/Python/modsupport.c#L432
>
> Follow up for b01bbb8ff1f2 and 896b19d12c08.
>

Queued this, many thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20190410/ea5ca4f2/attachment.html>


More information about the Mercurial-devel mailing list