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

Support CPython 3.12 pre-releases #467

Merged
merged 2 commits into from
Jul 4, 2023
Merged

Support CPython 3.12 pre-releases #467

merged 2 commits into from
Jul 4, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Jul 4, 2023

This fixes compatibility with cpython 3.12's beta releases. For the most part this was an uneventful release, the two major issues were:

  • CPython 3.12 changed the internal representation of integers, which we (probably unadvisably) poke at.
  • The idiom for statically declaring instances of singleton values (like None) has changed. We use this for declaring msgspec.NODEFAULT/msgspec.UNSET.

Fixes #462.

This fixes compatibility with cpython 3.12's beta releases. For the most
part this was an uneventful release, the two major issues were:

- CPython 3.12 changed the internal representation of integers, which we
  (probably unadvisably) poke at.
- The idiom for statically declaring instances of singleton values (like
  `None`) has changed. We use this for declaring
  `msgspec.NODEFAULT`/`msgspec.UNSET`.
@jcrist jcrist merged commit 8f3dc57 into main Jul 4, 2023
@jcrist jcrist deleted the cpython312-support branch July 4, 2023 20:38
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.

Python 3.12 support
1 participant