Skip to content
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

Use PyFloat_Pack2() on Python 3.11a7 #26

Merged
merged 1 commit into from
Mar 12, 2022
Merged

Use PyFloat_Pack2() on Python 3.11a7 #26

merged 1 commit into from
Mar 12, 2022

Conversation

vstinner
Copy link
Contributor

Python 3.11 alpha7 adds PyFloat_Pack2() and PyFloat_Unpack2()
functions:
https://bugs.python.org/issue46906

Python 3.11 alpha7 adds PyFloat_Pack2() and PyFloat_Unpack2()
functions:
https://bugs.python.org/issue46906
@vstinner
Copy link
Contributor Author

bitstruct currently fails to build on Python 3.11 since the _PyFloat_Pack2() function moved to the internal C API.

I just added a new clean public C API for bitstruct: see bpo-46906). This PR uses it.

Python 3.11 alpha7 is not released yet. It's scheduled in one month (at 2022-04-05): https://peps.python.org/pep-0664/

Note: see also my msgpack PR: msgpack/msgpack-python#499

@eerimoq
Copy link
Owner

eerimoq commented Mar 12, 2022

Nice, thank you. Feels good to use the public API!

@eerimoq eerimoq merged commit 169e012 into eerimoq:master Mar 12, 2022
@vstinner vstinner deleted the float_pack2 branch March 13, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants