mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
This commit is contained in:
parent
5fd5cb8d85
commit
bd44a7ead9
5 changed files with 11 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue