-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Update documentation for sys.winver
to not say it's "normally the first three characters of version"
#100894
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
Comments
The build architecture is also included as a suffix, except for x64. Lines 229 to 231 in 61762b9
Lines 79 to 85 in 61762b9
For example:
There can also be a "-test" suffix (e.g.
|
…l contents (pythonGH-100913) (cherry picked from commit d9dff4c) Co-authored-by: ram vikram singh <[email protected]>
…l contents (pythonGH-100913) (cherry picked from commit d9dff4c) Co-authored-by: ram vikram singh <[email protected]>
Since 3.10 actually :) I'm okay with only documenting it as "usually". It is actually the most useful way to find out if you're running an ARM64 version of Python, but there's no need to document it as such. |
…ents (GH-100913) (cherry picked from commit d9dff4c) Co-authored-by: ram vikram singh <[email protected]>
…ents (GH-100913) (cherry picked from commit d9dff4c) Co-authored-by: ram vikram singh <[email protected]>
Documentation
https://docs.python.org/3/library/sys.html#sys.winver says:
That has not been true since Python 3.11. It should probably be updated to say something like, "The value is normally the major and minor versions of the running Python interpreter," or something along those lines.
Linked PRs
sys.winver
#100913sys.winver
to clarify its usual contents (GH-100913) #100962sys.winver
to clarify its usual contents (GH-100913) #100963The text was updated successfully, but these errors were encountered: