Hi, all.

I proposed PEP 623 to remove Unicode APIs deprecated by PEP 393.

In this thread, I am proposing removal of Py_UNICODE (not Unicode
objects) APIs deprecated by PEP 393.
Please reply for any comments.


## Undocumented, have Py_DEPRECATED

There is no problem to remove them in Python 3.10.  I will just do it.

* Py_UNICODE_str*** functions -- already removed in
https://github.com/python/cpython/pull/21164
* PyUnicode_GetMax()


## Documented and have Py_DEPRECATED

* PyLong_FromUnicode
* PyUnicode_AsUnicodeCopy
* PyUnicode_Encode
* PyUnicode_EncodeUTF7
* PyUnicode_EncodeUTF8
* PyUnicode_EncodeUTF16
* PyUnicode_EncodeUTF32
* PyUnicode_EncodeUnicodeEscape
* PyUnicode_EncodeRawUnicodeEscape
* PyUnicode_EncodeLatin1
* PyUnicode_EncodeASCII
* PyUnicode_EncodeCharmap
* PyUnicode_TranslateCharmap
* PyUnicode_EncodeMBCS

These APIs are documented.  The document has ``.. deprecated:: 3.3
4.0`` directive.
They have been `Py_DEPRECATED` since Python 3.6 too.

Plan: Change the document to ``.. deprecated:: 3.0 3.10`` and remove
them in Python 3.10.


## PyUnicode_EncodeDecimal

It is not documented.  It has not been deprecated by Py_DEPRECATED.

Plan: Add Py_DEPRECATED in Python 3.9 and remove it in 3.11.


## PyUnicode_TransformDecimalToASCII

It is documented, but doesn't have ``deprecated`` directive. It is not
deprecated by Py_DEPRECATED.

Plan: Add Py_DEPRECATED and ``deprecated 3.3 3.11`` directive in 3.9,
and remove it in 3.11.


## _PyUnicode_ToLowercase, _PyUnicode_ToUppercase

They are not deprecated by PEP 393, but bpo-12736.
They are documented as deprecated, but don't have ``Py_DEPRECATED``.

Plan: Add Py_DEPRECATED in 3.9, and remove them in 3.11.

Note: _PyUnicode_ToTitlecase has Py_DEPRECATED. It can be removed in 3.10.


-- 
Inada Naoki  <songofaca...@gmail.com>
_______________________________________________
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/S7KW2U6IGXZFBMGS6WSJB26NZIBW4OLE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to