Skip to content

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

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

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 18, 2018

Replace also "may" with "can".
@@ -40,9 +40,12 @@ Cross Platform
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
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
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