Skip to content

gh-139227: Expose _PyImport_SwapPackageContext in the ABI - #139228

Closed
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:swappackagecontext
Closed

gh-139227: Expose _PyImport_SwapPackageContext in the ABI#139228
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:swappackagecontext

Conversation

@ZeroIntensity

@ZeroIntensityZeroIntensity commented Sep 22, 2025

Copy link
Copy Markdown
Member

@ZeroIntensity

Copy link
Copy Markdown
MemberAuthor

@hugovk Would you be okay with this landing in 3.14.0?

@encukou

Copy link
Copy Markdown
Member

It should definitely be unstable API. Exposing an internal function like this might be OK as an emergency change in 3.14 only -- that's up to @hugovk. But I wouldn't merge to main if it's not backported to 3.14.

@hugovk

Copy link
Copy Markdown
Member

This is too late for 3.14.0, especially as it also affects 3.12.

@ZeroIntensity

Copy link
Copy Markdown
MemberAuthor

Let's just make this PyUnstable, then.

@ZeroIntensity
ZeroIntensity deleted the swappackagecontext branch October 1, 2025 16:23
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ZeroIntensity@encukou@hugovk