-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Py_Size() should be named Py_SIZE() #45970
Comments
It would be helpful to have the name provide a cue that a macro is being |
Agreed. |
I assume that applies to Py_Refcnt and Py_Type as well? |
I think it would be easier to merge from trunk to py3k before the change |
I tried a simple find | xargs sed replace and it worked well. find -name '*.c' -or -name '*.h' -or -name '*.rst' | xargs sed -i |
I've renamed the three macros and added the old names for b/w compatibility. |
Why the compatibility? |
FWIW, should PyUnicode_Check, PyTuple_Check etc. also change to |
I've fixed PEP-3123 to update the spelling. |
While this would technically be the right thing to do, those macros |
New changeset 63183596db79 by Gregory P. Smith in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: