Skip to content

internal: preliminary fixes for PyPy 3.12 - #6374

Merged
bschoenmaeckers merged 2 commits into
PyO3:mainfrom
davidhewitt:pypy-3.12
Aug 31, 2026
Merged

internal: preliminary fixes for PyPy 3.12#6374
bschoenmaeckers merged 2 commits into
PyO3:mainfrom
davidhewitt:pypy-3.12

Conversation

@davidhewitt

Copy link
Copy Markdown
Member

Fixes #6345
Fixes #6244

This lands some preliminary fixes to get the PyPy 3.12 test suite moving further along based on local testing.

Comment thread pyo3-ffi/src/object.rs
) -> *mut PyObject;

#[cfg(Py_3_12)]
#[cfg_attr(PyPy, link_name = "PyPyObject_GetTypeData")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional? Does it not have the PyPy prefix?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is intentional. PyPy3.12 is moving to a model where the limited API interfaces will match 1:1 CPython, in preparation for being able to use abi3 c-extension modules without recompilation. There is more to do, we have not released 3.12 yet.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I found some mention of this at pypy/pypy#3397 (comment)

@bschoenmaeckers
bschoenmaeckers added this pull request to the merge queue Aug 31, 2026
Merged via the queue into PyO3:main with commit 1c0a520 Aug 31, 2026
53 checks passed
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.

PyPy 3.12 is missing c_int Avoid PyUnstable* API functions on PyPy

3 participants