bpo-35348: platform.architecture() doc suggests sys.maxsize by vstinner · Pull Request #11208 · python/cpython · GitHub
Skip to content

bpo-35348: platform.architecture() doc suggests sys.maxsize - #11208

Closed
vstinner wants to merge 2 commits into
python:masterfrom
vstinner:platform_architecture_doc
Closed

bpo-35348: platform.architecture() doc suggests sys.maxsize#11208
vstinner wants to merge 2 commits into
python:masterfrom
vstinner:platform_architecture_doc

Conversation

@vstinner

@vstinner vstinner commented Dec 18, 2018

Copy link
Copy Markdown
Member

Replace also "may" with "can".
Comment thread Doc/library/platform.rst

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.

sys.maxsize gives you the size of Py_ssize_t. On most platforms this is the same as the pointer size, but it is not guaranteed.

But I do not think that this addition is needed. platform.architecture() without arguments give you the bittness of the running Python interpreter. It does not try to guess it by parsing the file output.

@vstinner

Copy link
Copy Markdown
Member Author

@vstinner vstinner closed this Dec 18, 2018
@vstinner
vstinner deleted the platform_architecture_doc branch April 29, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants