Skip to content

Commit 3c861bc

Browse files
committed
versionadded, rewording
1 parent d5939cf commit 3c861bc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Doc/c-api/unicode.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,8 +1961,8 @@ Unstable API
19611961
PyUnstable_CompactUnicodeObject
19621962
PyUnstable_UnicodeObject
19631963
1964-
Aliases of :c:type:`PyASCIIObject`, :c:type:`PyCompactUnicodeObject`
1965-
and :c:type:`PyUnicodeObject`.
1964+
Aliases of the deprecated :c:type:`PyASCIIObject`,
1965+
:c:type:`PyCompactUnicodeObject` and :c:type:`PyUnicodeObject`.
19661966
19671967
Use these names to avoid deprecation warnings at build time,
19681968
when necessary for advanced use cases such as subclassing :py:type:`str`.
@@ -1972,16 +1972,20 @@ Unstable API
19721972
Users are encouraged to test with CPython pre-releases and use CPython
19731973
development channels to discuss replacement APIs.
19741974
1975+
.. versionadded:: next
1976+
19751977
19761978
.. c:function:: Py_hash_t PyUnstable_Unicode_GET_CACHED_HASH(PyObject *str)
19771979
19781980
Return the hash of *str*, as with :c:func:`PyObject_Hash`, if the hash
19791981
has been cached and is immediately available.
19801982
Otherwise, return ``-1`` *without* setting an exception.
19811983
1982-
The *str* argument must be a string (:c:expr:`PyUnicode_Check(obj)`
1984+
The *str* argument must be a string (:c:expr:`PyUnicode_Check(str)`
19831985
must be true). This is not checked.
19841986
19851987
This function never fails with an exception.
19861988
19871989
Note that there are no guarantees on when a Unicode object's hash is cached.
1990+
1991+
.. versionadded:: next

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ New features
16551655
* :c:type:`PyUnstable_UnicodeObject`
16561656
* :c:type:`PyUnstable_Unicode_GET_CACHED_HASH`
16571657

1658-
See the documentation for caveats.
1658+
See their documentation for caveats.
16591659
(Contributed by Petr Viktorin in :gh:`131510`)
16601660

16611661

0 commit comments

Comments
 (0)