[Python-Dev] PY_SSIZE_T_CLEAN
Thomas Heller
theller at python.net
Wed Mar 22 20:52:53 CET 2006
Martin v. Löwis wrote:
> Thomas Heller wrote:
>> Then, from only reading the PEP without looking up the sources,
>> it is not clear to me what the PY_SIZE_T_CLEAN definition does.
>
> The description says
>
> The conversion codes 's#' and 't#' will output Py_ssize_t
> if the macro PY_SSIZE_T_CLEAN is defined before Python.h
> is included, and continue to output int if that macro
> isn't defined.
>
> which (IMO, of course), specifies precisely what PY_SSIZE_T_CLEAN
> does. What information do you find lacking here?
Nothing lacking. It is fine - I didn't read it carefully enough.
Thanks,
Thomas
More information about the Python-Dev
mailing list