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 the deprecation of `__package__` and `__cached__` by brettcannon · Pull Request #124377 · python/cpython

Conversation

@brettcannon

@brettcannon brettcannon 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
Member
  • Issue: update the import machinery to only use __spec__ #65961

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@brettcannon
pythonGH-65961: Document the deprecation of __package__ and `__cach…
81e1418
…ed__`
@brettcannon
brettcannon requested review from ericsnowcurrently, ncoghlan, warsaw and willingc as code owners September 23, 2024 20:27
@brettcannon brettcannon self-assigned this Sep 23, 2024
@brettcannon brettcannon added the needs backport to 3.13 only security fixes label Sep 23, 2024
@brettcannon
brettcannon removed request for ericsnowcurrently, ncoghlan and willingc September 23, 2024 20:27
@bedevere-app bedevere-app Bot added awaiting core review docs Documentation in the Doc dir labels Sep 23, 2024
@bedevere-app bedevere-app Bot mentioned this pull request Sep 23, 2024
update the import machinery to only use __spec__ #65961
Open
brettcannon added 3 commits September 23, 2024 13:29
@brettcannon
Fix a copy-and-paste error
ed3ec72
@brettcannon
Fix a typo
08a3f2b
@brettcannon
Update deprecation docs
866a4f0
warsaw
warsaw approved these changes Sep 23, 2024
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Sep 23, 2024
@brettcannon
brettcannon merged commit 67201ad into python:main Sep 23, 2024
@brettcannon
brettcannon deleted the issue65961-deprecate-setting branch September 23, 2024 21:14
@miss-islington-app

miss-islington-app Bot commented Sep 23, 2024

Copy link
Copy Markdown

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

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 Sep 23, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 23, 2024
@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]>
@bedevere-app

bedevere-app Bot commented Sep 23, 2024

Copy link
Copy Markdown

GH-124380 is a backport of this pull request to the 3.13 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.13 only security fixes label Sep 23, 2024
Yhg1s pushed a commit that referenced this pull request Sep 27, 2024
@miss-islington @brettcannon @warsaw
[3.13] GH-65961: Document the deprecation of __package__ and `__cac…
cf98f39
…hed__` (GH-124377) (#124380)

* GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-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]>
Co-authored-by: Barry Warsaw <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@warsaw warsaw warsaw approved these changes

Uh oh!

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

Assignees

@brettcannon brettcannon

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.

2 participants

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