Skip to content

[3.15] gh-142349: Simplify lazy import resolution (GH-158282) - #158569

Merged
pablogsal merged 1 commit into
python:3.15from
pablogsal:backport-158282-3.15-land-20261001
Oct 1, 2026
Merged

pablogsal merged 1 commit into
python:3.15from
pablogsal:backport-158282-3.15-land-20261001

Conversation

@pablogsal

@pablogsal pablogsal commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Backport #158282 (a6a63b6) to 3.15 so lazy import fixes use the same resolution code as main. The 3.15 conflicts are resolved, the interpreter files are regenerated, and the ABI snapshot is updated for the removed private helpers and the changed return type of _PyDict_LoadGlobalStackRef.

The debug build passes test_lazy_import, test_import, test_importlib, test_module, test_dict, test_capi, and test_sys (3,268 tests).

)

Backport the shared lazy import resolver to Python 3.15, regenerate
interpreter files, and update the ABI snapshot.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@read-the-docs-community

Copy link
Copy Markdown

@pablogsal
pablogsal merged commit 021f634 into python:3.15 Oct 1, 2026
90 of 161 checks passed
@pablogsal
pablogsal deleted the backport-158282-3.15-land-20261001 branch October 1, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-blocker skip news type-feature A feature request or enhancement

Projects

Development

Successfully merging this pull request may close these issues.

2 participants