mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -18,7 +18,7 @@ static const char unnamed_fields_key[] = "n_unnamed_fields";
|
|||
|
||||
/* Fields with this name have only a field index, not a field name.
|
||||
They are only allowed for indices < n_visible_fields. */
|
||||
char *PyStructSequence_UnnamedField = "unnamed field";
|
||||
const char * const PyStructSequence_UnnamedField = "unnamed field";
|
||||
_Py_IDENTIFIER(n_sequence_fields);
|
||||
_Py_IDENTIFIER(n_fields);
|
||||
_Py_IDENTIFIER(n_unnamed_fields);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue