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
and then only if the executable points to the Python interpreter. Reasonable
defaults are used when the above needs are not met.

To only get the pointer size of the running Python interpreter,

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

Ok, I abandon my change in this case.

@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