-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
python: add version() to get running version #1322
Conversation
PyPy failure is upstream bug in |
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.
Thanks!
Thanks for the review, I pushed some changes to address. Also I renamed this API to |
44727d2
to
bd3c4ab
Compare
bd3c4ab
to
71539b9
Compare
Thanks, simplified |
71539b9
to
f57ca1c
Compare
f57ca1c
to
722814c
Compare
722814c
to
2616d3d
Compare
Thanks! |
This PR adds a new API
Python::version()
which is a safe convenience wrapper aroundPy_GetVersion()
.Now that we offer abi3 wheels which may need to support multiple different Python versions, such an API will come in helpful. We saw this already in #1320.