summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-16 16:55:29 (GMT)
committerGitHub <noreply@github.com>2019-11-16 16:55:29 (GMT)
commitbd44a7ead9f7336d7bb45f186b2b6ca0300154f7 (patch)
treef53b1af72f9a828420c251c5ecc27e20d66eaffe /Doc/c-api
parent5fd5cb8d85fab3393dd76c7f3de1cdeb8ecf7203 (diff)
downloadcpython-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.zip
cpython-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.gz
cpython-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.bz2
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/tuple.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
index 25df397..62bc9a5 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)