You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update documentation for sys.winver to not say it's "normally the first three characters of version" #100894
The value is normally the first three characters of version.
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.
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.
Activity
eryksun commentedon Jan 9, 2023
The build architecture is also included as a suffix, except for x64.
cpython/PCbuild/python.props
Lines 229 to 231 in 61762b9
cpython/PCbuild/python.props
Lines 79 to 85 in 61762b9
For example:
There can also be a "-test" suffix (e.g.
build.bat --test-marker), but it's not a "normal" value. For example:GH-100894: Updated the doc for `sys.winver` to clarify its usual cont…
pythonGH-100894: Updated the doc for `sys.winver` to clarify its usua…
pythonGH-100894: Updated the doc for `sys.winver` to clarify its usua…
zooba commentedon Jan 12, 2023
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.
GH-100894: Updated the doc for `sys.winver` to clarify its usual cont…
GH-100894: Updated the doc for `sys.winver` to clarify its usual cont…