GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.15] gh-142349: Simplify lazy import resolution (GH-158282) by pablogsal · Pull Request #158569 · python/cpython

Conversation

@pablogsal

@pablogsal pablogsal commented Oct 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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).

  • Issue: Implement PEP 810 – Explicit lazy imports #142349

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pablogsal @encukou @hugovk
[3.15] pythongh-142349: Simplify lazy import resolution (pythonGH-158282
c9ca51c
)

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

Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
@pablogsal pablogsal added skip news release-blocker labels Oct 1, 2026
@github-project-automation github-project-automation Bot added this to Release and Deferred blockers 🚫 Oct 1, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Release and Deferred blockers 🚫 Oct 1, 2026
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 1, 2026
This was referenced Oct 1, 2026
Implement PEP 810 – Explicit lazy imports #142349
Closed
gh-142349: Simplify lazy import resolution #158282
Merged
@pablogsal pablogsal closed this Oct 1, 2026
@pablogsal pablogsal reopened this Oct 1, 2026
@pablogsal
pablogsal marked this pull request as ready for review October 1, 2026 16:25
@pablogsal
pablogsal requested review from DinoV, FFY00, Yhg1s, ZeroIntensity, brettcannon, encukou, ericsnowcurrently, kumaraditya303, markshannon, methane, ncoghlan and warsaw as code owners October 1, 2026 16:25
@bedevere-app bedevere-app Bot added the awaiting core review label Oct 1, 2026
@pablogsal
pablogsal requested a review from hugovk October 1, 2026 16:26
@pablogsal
pablogsal enabled auto-merge (squash) October 1, 2026 16:26
@read-the-docs-community

read-the-docs-community Bot commented Oct 1, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34881339 | 📁 Comparing c9ca51c against main (82fcaf8)

  🔍 Preview build  

148 files changed · + 1 added · ± 142 modified · - 5 deleted

+ Added

  • library/asyncio-policy.html

± Modified

  • glossary.html
  • index.html
  • license.html
  • py-modindex.html
  • builtins/exceptions.html
  • builtins/functions.html
  • builtins/stdtypes.html
  • c-api/bytes.html
  • c-api/capsule.html
  • c-api/complex.html
  • and 132 more...

- Deleted

  • deprecations/pending-removal-in-3.21.html
  • library/tkinter.dialogs.html
  • library/tkinter.fontchooser.html
  • library/tkinter.systray.html
  • whatsnew/3.16.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hugovk
hugovk approved these changes Oct 1, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Oct 1, 2026
@pablogsal
pablogsal merged commit 021f634 into python:3.15 Oct 1, 2026
90 of 161 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@pablogsal
pablogsal deleted the backport-158282-3.15-land-20261001 branch October 1, 2026 16:56
@bedevere-app bedevere-app Bot removed the awaiting merge label Oct 1, 2026
@ddorian ddorian mentioned this pull request Oct 2, 2026
3.15: gh-142349 backport moves c_stack_refs in _PyThreadStateImpl, breaking greenlet's rc2-built wheels #158593
Closed
@Yhg1s Yhg1s mentioned this pull request Oct 2, 2026
[3.15] GH-158593: Fix ABI compatibility with earlier RCs #158595
Merged
Kronuz added a commit to Kronuz/cpython that referenced this pull request Oct 5, 2026
@Kronuz
[3.15] pythongh-142349: Simplify lazy import resolution (pythonGH-158282
cc8f28a
) (python#158569)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hugovk hugovk hugovk approved these changes
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner
@Yhg1s Yhg1s Awaiting requested review from Yhg1s Yhg1s is a code owner
@DinoV DinoV Awaiting requested review from DinoV DinoV is a code owner
@brettcannon brettcannon Awaiting requested review from brettcannon brettcannon is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner
@warsaw warsaw Awaiting requested review from warsaw warsaw is a code owner
@kumaraditya303 kumaraditya303 Awaiting requested review from kumaraditya303 kumaraditya303 is a code owner
@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner
@methane methane Awaiting requested review from methane methane is a code owner
@encukou encukou Awaiting requested review from encukou encukou is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

Release and Deferred blockers 🚫
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@pablogsal @hugovk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.