<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 1:47 AM Yuya Nishihara <<a href="mailto:yuya@tcha.org">yuya@tcha.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># HG changeset patch<br>
# User Yuya Nishihara <<a href="mailto:yuya@tcha.org" target="_blank">yuya@tcha.org</a>><br>
# Date 1554814777 -32400<br>
#      Tue Apr 09 21:59:37 2019 +0900<br>
# Node ID 1792bd9807b6ff434df207e33b94d2ea32555b3e<br>
# Parent  864f9f63d3ed371ab3d283911790d4f990926499<br>
cext: cast s# arguments of Py_BuildValue() to Py_ssize_t<br>
<br>
The doc doesn't state that "s#" of Py_BuildValue() is controlled by<br>
PY_SSIZE_T_CLEAN (unlike the one for PyArg_ParseTuple()), but actually<br>
it's switched to Py_ssize_t.<br>
<br>
<a href="https://docs.python.org/2/c-api/arg.html#c.Py_BuildValue" rel="noreferrer" target="_blank">https://docs.python.org/2/c-api/arg.html#c.Py_BuildValue</a><br>
<a href="https://github.com/python/cpython/blob/2.7/Python/modsupport.c#L432" rel="noreferrer" target="_blank">https://github.com/python/cpython/blob/2.7/Python/modsupport.c#L432</a><br>
<br>
Follow up for b01bbb8ff1f2 and 896b19d12c08.<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Queued this, many thanks!</div></div></div>