diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-14 01:11:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 01:11:54 +0200 |
commit | d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb (patch) | |
tree | d8ad748d0965c536d7cf2139f6ca1e6cf25c6d75 /Include/cpython/object.h | |
parent | d72ea605218bbee6ae46648997d9bb76d0fba460 (diff) | |
download | cpython-git-d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb.tar.gz |
bpo-39465: Remove _PyUnicode_ClearStaticStrings() from C API (GH-20078)
Remove the _PyUnicode_ClearStaticStrings() function from the C API.
Make the function fully private (declare it with "static").
Diffstat (limited to 'Include/cpython/object.h')
-rw-r--r-- | Include/cpython/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 8bf05a3271..444f832f5b 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -36,7 +36,7 @@ PyAPI_FUNC(Py_ssize_t) _Py_GetRefTotal(void); PyId_foo is a static variable, either on block level or file level. On first usage, the string "foo" is interned, and the structures are linked. On interpreter - shutdown, all strings are released (through _PyUnicode_ClearStaticStrings). + shutdown, all strings are released. Alternatively, _Py_static_string allows choosing the variable name. _PyUnicode_FromId returns a borrowed reference to the interned string. |