◐ Shell
reader mode source ↗
Skip to content

GH-65961: Stop setting __cached__ on modules#142165

Merged
brettcannon merged 4 commits into
python:mainfrom
brettcannon:remove-__cached__
Dec 11, 2025
Merged

GH-65961: Stop setting __cached__ on modules#142165
brettcannon merged 4 commits into
python:mainfrom
brettcannon:remove-__cached__

Conversation

@brettcannon

@brettcannon brettcannon commented Dec 1, 2025

Copy link
Copy Markdown
Member

@brettcannon brettcannon self-assigned this Dec 2, 2025
Hide details View details @brettcannon brettcannon merged commit af18572 into python:main Dec 11, 2025
118 of 124 checks passed
@brettcannon brettcannon deleted the remove-__cached__ branch December 11, 2025 19:44
fatelei pushed a commit to fatelei/cpython that referenced this pull request Dec 12, 2025

@DimitriPapadopoulos DimitriPapadopoulos left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hide comment

@brettcannon This change puts the __cached__ deprecation notices under the __file__ attribute. I find this confusing::

Image

@brettcannon

Copy link
Copy Markdown
Member Author

This change puts the __cached__ deprecation notices under the __file__ attribute. I find this confusing

That's a syntax mistake in the docs. Can you please open an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants