Skip to content

bpo-36641: Add "const" to PyDoc_VAR macro#12854

Merged
methane merged 6 commits into
python:masterfrom
methane:const-docstring
Apr 16, 2019
Merged

bpo-36641: Add "const" to PyDoc_VAR macro#12854
methane merged 6 commits into
python:masterfrom
methane:const-docstring

Conversation

@methane

@methane methane commented Apr 16, 2019

Copy link
Copy Markdown
Member

methane added 2 commits April 16, 2019 21:12
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

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.

This should be rather in the "C API" section.

Comment thread Misc/NEWS.d/next/C API/2019-04-16-21-18-19.bpo-36641.pz-DIR.rst Outdated
Co-Authored-By: methane <songofacandy@gmail.com>
@tirkarthi

Copy link
Copy Markdown
Member

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 .

Comment thread Misc/NEWS.d/next/C API/2019-04-16-21-18-19.bpo-36641.pz-DIR.rst Outdated
@bedevere-bot

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@vstinner vstinner 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.

LGTM if you fix the NEWS entry.

Co-Authored-By: methane <songofacandy@gmail.com>
@methane
methane merged commit 926b0cb into python:master Apr 16, 2019
@methane
methane deleted the const-docstring branch April 16, 2019 23:39
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.

6 participants