diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-07 07:49:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 07:49:46 (GMT) |
commit | dc98a5468a48ecffe95a6c3a07ce21366477bdd7 (patch) | |
tree | 5b3479a80233531b97755a67831395fe59228099 /Include/cpython | |
parent | 713ba03276c4ddc33c9debc51b03164ea18eead6 (diff) | |
download | cpython-dc98a5468a48ecffe95a6c3a07ce21366477bdd7.zip cpython-dc98a5468a48ecffe95a6c3a07ce21366477bdd7.tar.gz cpython-dc98a5468a48ecffe95a6c3a07ce21366477bdd7.tar.bz2 |
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
(cherry picked from commit 46e19b61d31ba99f049258efa4ff1334856a3643)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/pyerrors.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index e3098b3..418f48a 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -148,7 +148,10 @@ PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject( PyObject *filename, int lineno); -/* Create a UnicodeEncodeError object */ +/* Create a UnicodeEncodeError object. + * + * TODO: This API will be removed in Python 3.11. + */ Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_Create( const char *encoding, /* UTF-8 encoded string */ const Py_UNICODE *object, @@ -158,7 +161,10 @@ Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_Create( const char *reason /* UTF-8 encoded string */ ); -/* Create a UnicodeTranslateError object */ +/* Create a UnicodeTranslateError object. + * + * TODO: This API will be removed in Python 3.11. + */ Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_Create( const Py_UNICODE *object, Py_ssize_t length, |