Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-38650: Constify PyStructSequence_UnnamedField. #17005

Conversation

serhiy-storchaka
Copy link
Member

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

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.
Copy link
Member

@ammaraskar ammaraskar left a comment

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.

@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