diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-11-16 18:55:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 18:55:29 +0200 |
commit | bd44a7ead9f7336d7bb45f186b2b6ca0300154f7 (patch) | |
tree | f53b1af72f9a828420c251c5ecc27e20d66eaffe /Doc | |
parent | 5fd5cb8d85fab3393dd76c7f3de1cdeb8ecf7203 (diff) | |
download | cpython-git-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.gz |
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/tuple.rst | 5 | ||||
-rw-r--r-- | Doc/whatsnew/3.9.rst | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst index 25df3974e8..62bc9a5650 100644 --- a/Doc/c-api/tuple.rst +++ b/Doc/c-api/tuple.rst @@ -182,10 +182,13 @@ type. +-----------+------------------+-----------------------------------------+ -.. c:var:: char* PyStructSequence_UnnamedField +.. c:var:: const char * const PyStructSequence_UnnamedField Special value for a field name to leave it unnamed. + .. versionchanged:: 3.9 + The type was changed from ``char *``. + .. c:function:: PyObject* PyStructSequence_New(PyTypeObject *type) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index b1beb0be09..6e9ddc5684 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -215,6 +215,9 @@ Build and C API Changes way to call a callable Python object without any argument. (Contributed by Victor Stinner in :issue:`37194`.) +* The global variable :c:data:`PyStructSequence_UnnamedField` is now a constant + and refers to a constant string. + (Contributed by Serhiy Storchaka in :issue:`38650`.) Deprecated |