Skip to content

[3.15] Native/contextvar: PyContextVar_* hidden under Py_LIMITED_API #19908

Description

@vlad-scherbich

Part of #17809

Tier: A
Section: Native / contextvar


Summary:

src/native/contextvar.rs fails with E0425 on ffi::PyContextVar_New / _Get / _Set when Py_LIMITED_API is on. Those symbols are not in CPython's stable ABI; pyo3-ffi hides them behind not(Py_LIMITED_API).

Local PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 builds on 3.15 hit this (same developer convention as #18429's test plan). CI 3.15 already compiles without this change. It does not unblock wheel builds and does not lift wrap().

Fix: local PyContextVar_New / _Get / _Set decls in src/native/contextvar.rs.

Implemented in #19903.

Metadata

Metadata

Labels

python:3.15Tracks Python 3.15 enablement work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions