-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CI: Print detailed Python version #12176
Conversation
For merge, it could also be useful in the future. python/cpython#117120 is a potential fix for #12174. For that PR, our own doctests are back down from ~45 mins to ~10 mins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the more info the better thanks 😄
It's been more than 10 years that I was coding in Python and I didn't know about this |
The simpler form would be |
It was added in 3.6: https://docs.python.org/3/using/cmdline.html#cmdoption-version |
Purpose
Detail
Running
python
with a single--version
gives info like:Running with a double
--version --version
gives more details:This contains a commit hash and timestamp, which could be useful in identifying the Python version in more details.