-
-
Notifications
You must be signed in to change notification settings - Fork 34k
bpo-36641: Add "const" to PyDoc_VAR macro #12854
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
Conversation
It reduces "data" segment in python about 200KB.
| @@ -0,0 +1,2 @@ | |||
| :c:macro:`PyDoc_VAR(name)` and :c:macro:`PyDoc_STRVAR(name,str)`` now create | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be rather in the "C API" section.
Misc/NEWS.d/next/C API/2019-04-16-21-18-19.bpo-36641.pz-DIR.rst
Outdated
Show resolved
Hide resolved
Co-Authored-By: methane <[email protected]>
|
Maybe a naive question does this make any difference in Windows too? I could see this was suggested in past by @serhiy-storchaka https://bugs.python.org/issue20323#msg236599 . |
Misc/NEWS.d/next/C API/2019-04-16-21-18-19.bpo-36641.pz-DIR.rst
Outdated
Show resolved
Hide resolved
|
When you're done making the requested changes, leave the comment: |
vstinner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if you fix the NEWS entry.
Co-Authored-By: methane <[email protected]>
https://bugs.python.org/issue36641