
June 8, 2021
3:41 a.m.
On Tue, Jun 8, 2021 at 12:53 AM Hai Shi <shihai1992@gmail.com> wrote:
So how about making PY_SSIZE_T_CLEAN not mandatory in Python 3.11? Extension modules can use '#' format with ssize_t, without PY_SSIZE_T_CLEAN defined. Or should we wait one more version?
Hi, Inada, I suggest we should wait until at least Python 3.12 or Python 4.0.
Serhiy and you suggest Python 3.12 and I agree with it. Thank you for your reply.
There have an another question. There have many C API defined under PY_SSIZE_T_CLEAN, for example: _PyArg_Parse_SizeT(). Could we remove or merge them after making PY_SSIZE_T_CLEAN not mandatory?
They are part of stable ABIs. So we can remove/merge them at Python 4.0. Regards, -- Inada Naoki <songofacandy@gmail.com>