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-145299: Move __cached__ deprecation to its own section by gourijain029-del · Pull Request #145374 · python/cpython

Conversation

@gourijain029-del

@gourijain029-del gourijain029-del commented Feb 28, 2026 •
edited by github-actions Bot
Loading

Uh oh!

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

Copy link
Copy Markdown

The deprecation notice for __cached__ was incorrectly placed under the __file__ attribute documentation, making it confusing for readers.

This PR:

  • Creates a new module.__cached__ section in the datamodel docs
  • Moves the deprecation notice from __file__ to the new __cached__ section
  • Adds a brief description of what __cached__ is

Fixes #145299

  • Issue: __cached__ deprecation notice under __file__ #145299

📚 Documentation preview 📚: https://cpython-previews--145374.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

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

All reactions
@gourijain029-del
gourijain029-del requested review from AA-Turner and willingc as code owners February 28, 2026 23:07
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Feb 28, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Feb 28, 2026
__cached__ deprecation notice under __file__ #145299
Closed
@github-project-automation github-project-automation Bot added this to Docs PRs Feb 28, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Feb 28, 2026
@gourijain029-del
pythongh-145299: Remove misplaced __cached__ deprecation notice
dc0295c
The __cached__ deprecation notice was under __file__ documentation.
Since __cached__ was removed in 3.15, the deprecation notice is no
longer relevant and has been removed.
@gourijain029-del
gourijain029-del force-pushed the gh-145299-fix-cached-deprecation-location branch from 0d0c668 to dc0295c Compare February 28, 2026 23:22
da-woods
da-woods reviewed Mar 1, 2026
View reviewed changes
Comment thread Doc/reference/datamodel.rst

.. versionchanged:: 3.15
``__cached__`` is no longer set.

@da-woods da-woods Mar 1, 2026

Copy link
Copy Markdown
Contributor

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.

This doesn't look like you've moved it

Sorry, something went wrong.

Uh oh!

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

All reactions

@gourijain029-del gourijain029-del Mar 1, 2026

Copy link
Copy Markdown
Author

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.

I have now properly moved the cached deprecation notice to its own dedicated section in datamodel.rst
and updated the documentation for file to remove the plural reference. Thanks for catching that!

Sorry, something went wrong.

Uh oh!

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

All reactions
@gourijain029-del
Move __cached__ deprecation to its own section in datamodel.rst
a577b5f
@encukou

encukou commented Mar 2, 2026

Copy link
Copy Markdown
Member

Now you've added docs for the removed attribute.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 8, 2026
@encukou

encukou commented Aug 20, 2026

Copy link
Copy Markdown
Member

Done in #156053.

All reactions

Sorry, something went wrong.

Uh oh!

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

@encukou encukou closed this Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@willingc willingc Awaiting requested review from willingc willingc is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
1 more reviewer
@da-woods da-woods da-woods left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

awaiting review docs Documentation in the Doc dir skip news stale Stale PR or inactive for long period of time.

Projects

Docs PRs
Status: Todo

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

@gourijain029-del @encukou @da-woods
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.