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.13] GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377) by miss-islington · Pull Request #124380 · python/cpython

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 23, 2024 •
edited by github-actions Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

The code changes for warning related to __package__ landed in Python 3.12. __cached__ doesn't have any changes as it isn't used but only set by the import system.
(cherry picked from commit 67201ad)

Co-authored-by: Brett Cannon [email protected]

  • Issue: update the import machinery to only use __spec__ #65961

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@brettcannon @miss-islington
pythonGH-65961: Document the deprecation of __package__ and `__cach…
6d39315
…ed__` (pythonGH-124377)

The code changes for warning related to `__package__` landed in Python 3.12. `__cached__` doesn't have any changes as it isn't used but only set by the import system.
(cherry picked from commit 67201ad)

Co-authored-by: Brett Cannon <[email protected]>
@miss-islington
miss-islington requested review from brettcannon, ericsnowcurrently, ncoghlan and warsaw as code owners September 23, 2024 21:14
@bedevere-app bedevere-app Bot added the awaiting review label Sep 23, 2024
This was referenced Sep 23, 2024
GH-65961: Document the deprecation of __package__ and __cached__ #124377
Merged
update the import machinery to only use __spec__ #65961
Open
@bedevere-app bedevere-app Bot added the docs Documentation in the Doc dir label Sep 23, 2024
@brettcannon
brettcannon requested a review from Yhg1s September 23, 2024 21:15
brettcannon
brettcannon approved these changes Sep 23, 2024
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Sep 23, 2024
Yhg1s
Yhg1s reviewed Sep 23, 2024
View reviewed changes
Comment thread Misc/NEWS.d/next/Core_and_Builtins/2024-09-23-13-25-27.gh-issue-65961.LDqXV2.rst Resolved

Uh oh!

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

@warsaw @Yhg1s
Reword news item
db36729
Because these attributes were *already* deprecated, the only change now is to document those previous deprecations.

Co-authored-by: T. Wouters <[email protected]>
warsaw
warsaw approved these changes Sep 27, 2024
View reviewed changes
@Yhg1s
Merge branch '3.13' into backport-67201ad-3.13
708d971
@Yhg1s
Yhg1s enabled auto-merge (squash) September 27, 2024 18:06
@Yhg1s
Yhg1s merged commit cf98f39 into python:3.13 Sep 27, 2024
@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 27, 2024
@miss-islington
miss-islington deleted the backport-67201ad-3.13 branch January 2, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Yhg1s Yhg1s Yhg1s left review comments
@brettcannon brettcannon brettcannon approved these changes
@warsaw warsaw warsaw approved these changes
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan 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

Projects

None yet

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.

4 participants

@miss-islington @brettcannon @warsaw @Yhg1s
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.