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 — gh-65961: Document __cached__ removal in What's New & clarify references to it by encukou · Pull Request #156053 · python/cpython

Conversation

@encukou

@encukou encukou commented Aug 19, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member
  • Move deprecation notice to Whatsnew change list.
    • Add a note that __loader__ & __package__ are next. (These also link to relevant docs.)
  • Clarify references to __cached__ now that the term doesn't link to its docs.
  • Move the .. versionchanged from __file__ docs to the top level, and remove the historical .. deprecated-removed:: (fixes __cached__ deprecation notice under __file__ #145299).
  • Issue: update the import machinery to only use __spec__ #65961

Sorry, something went wrong.

Uh oh!

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

All reactions
@encukou
pythongh-65961: Document __cached__ removal in What's New & clarify r…
910612e
…eferences to it

- Move deprecation notice to change list
- Clarify references to ``__cached__`` now that the term it doesn't link to its docs.
- Move the ``.. versionchanged`` from ``__file__`` docs to the top level.
@encukou
encukou requested a review from brettcannon August 19, 2026 13:23
@encukou
encukou requested review from AA-Turner, FFY00, ericsnowcurrently, ncoghlan, warsaw and willingc as code owners August 19, 2026 13:23
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Aug 19, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Aug 19, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Aug 19, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Aug 19, 2026
update the import machinery to only use __spec__ #65961
Open
@bedevere-app bedevere-app Bot added the awaiting core review label Aug 19, 2026
@read-the-docs-community

read-the-docs-community Bot commented Aug 19, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34155109 | 📁 Comparing 48cb623 against main (20e6c2f)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

  • c-api/import.html
  • library/runpy.html
  • reference/datamodel.html
  • tutorial/stdlib.html
  • whatsnew/3.15.html
  • whatsnew/changelog.html
All reactions

Sorry, something went wrong.

Uh oh!

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

@encukou encukou added the needs backport to 3.15 bugs and security fixes label Aug 19, 2026
StanFromIreland
StanFromIreland reviewed Aug 19, 2026
View reviewed changes
Comment thread Doc/deprecations/pending-removal-in-3.15.rst
Pending removal in Python 3.15
------------------------------

* The import system:

@StanFromIreland StanFromIreland Aug 19, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

These entries usually stay, they aren't removed. In older What's New entries the deprecation will now be missing.

Sorry, something went wrong.

Uh oh!

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

All reactions
brettcannon
brettcannon approved these changes Aug 19, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Aug 19, 2026
@encukou
Don't remove from Pending removal
48cb623
@encukou
encukou merged commit 228b1bf into python:main Aug 20, 2026
30 checks passed

Uh oh!

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

@miss-islington-app

miss-islington-app Bot commented Aug 20, 2026

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the awaiting merge label Aug 20, 2026
@encukou
encukou deleted the removals-315-cached branch August 20, 2026 15:03
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 20, 2026
@bedevere-app

bedevere-app Bot commented Aug 20, 2026

Copy link
Copy Markdown

GH-156123 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Aug 20, 2026
@encukou encukou mentioned this pull request Aug 20, 2026
gh-145299: Move __cached__ deprecation to its own section #145374
Closed
hugovk pushed a commit that referenced this pull request Aug 27, 2026
@miss-islington @encukou
[3.15] gh-65961: Document __cached__ removal in What's New & clarify …
1c82381
…references to it (GH-156053) (#156123)

Co-authored-by: Petr Viktorin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@StanFromIreland StanFromIreland StanFromIreland left review comments
@brettcannon brettcannon brettcannon approved these changes
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 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
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@willingc willingc Awaiting requested review from willingc willingc is a code owner

Uh oh!

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

Assignees

No one assigned

Labels

docs Documentation in the Doc dir skip news

Projects

Docs PRs
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

__cached__ deprecation notice under __file__

Uh oh!

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

3 participants

@encukou @brettcannon @StanFromIreland
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.