◐ Shell
clean mode source ↗

Use PyFloat_Pack8() on Python 3.11a7 by vstinner · Pull Request #499 · msgpack/msgpack-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

methane

merged 1 commit into

msgpack:mainfrom

vstinner:py311a7

Mar 14, 2022

Merged

Use PyFloat_Pack8() on Python 3.11a7#499

methane

merged 1 commit into

msgpack:mainfrom

vstinner:py311a7

Conversation

@vstinner

Copy link Copy Markdown

Contributor

Python 3.11a7 adds public functions:

  • PyFloat_Pack4(), PyFloat_Pack8()
  • PyFloat_Unpack4(), PyFloat_Unpack8()

https://bugs.python.org/issue46906

hroncok reacted with heart emoji
Python 3.11a7 adds public functions:

* PyFloat_Pack4(), PyFloat_Pack8()
* PyFloat_Unpack4(), PyFloat_Unpack8()

https://bugs.python.org/issue46906

@vstinner

Copy link Copy Markdown

Contributor Author

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

I just added a new clean public C API for msgpack: 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/

@vstinner

Copy link Copy Markdown

Contributor Author

Cython doesn't support Python 3.11 yet: see pending PR cython/cython#4667

@methane methane merged commit 849c806 into msgpack:main

Mar 14, 2022

@vstinner vstinner deleted the py311a7 branch

March 14, 2022 09:32

@vstinner

Copy link Copy Markdown

Contributor Author

Thank you @methane :-) msgpack was my main motivation to solve https://bugs.python.org/issue46906 ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner @methane