Le dim. 28 juin 2020 à 17:21, Inada Naoki <songofaca...@gmail.com> a écrit :
> More aggressive idea: override current PyUnicode_EncodeXXX() apis.
> Change from `Py_UNICODE *object` to `PyObject *unicode`.
>
> This idea might look crazy.  But PyUnicode_EncodeXXX APIs are
> deprecated for a long time, and there are only a few users.
> I grepped from 3874 source packages in top 4000 downloaded packages.
> (126 packages are wheel-only)

IMO it's a violation of the C API stability warranty. I would prefer
to use different function names to ensure that building an old C
extension fails with a compiler error, rather than emit a compiler
warning and crash at runtime.

Victor
-- 
Night gathers, and now my watch begins. It shall not end until my death.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6KSSSYZLJK7J6CZIUYASUU53TQISEJ67/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to