Skip to content

bpo-38650: Constify PyStructSequence_UnnamedField.#17005

Merged
serhiy-storchaka merged 3 commits into
python:masterfrom
serhiy-storchaka:PyStructSequence_UnnamedField-const
Nov 16, 2019
Merged

bpo-38650: Constify PyStructSequence_UnnamedField.#17005
serhiy-storchaka merged 3 commits into
python:masterfrom
serhiy-storchaka:PyStructSequence_UnnamedField-const

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Oct 30, 2019

Copy link
Copy Markdown
Member

Make it a constant and referring to a constant string.

https://bugs.python.org/issue38650

Make it a constant and referring to a constant string.

@ammaraskar ammaraskar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with suggestion. Also from a quick search on Github: https://github.com/search?l=C&p=1&q=PyStructSequence_UnnamedField+NOT+structseq&type=Code

I don't think there's a lot of external uses of this API so should be pretty safe.

Comment thread Doc/c-api/tuple.rst
@serhiy-storchaka
serhiy-storchaka merged commit bd44a7e into python:master Nov 16, 2019
@serhiy-storchaka
serhiy-storchaka deleted the PyStructSequence_UnnamedField-const branch November 16, 2019 16:55
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
Make it a constant and referring to a constant string.
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Make it a constant and referring to a constant string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants