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-150032: Tidy up 3.15 pending removals by StanFromIreland · Pull Request #149594 · python/cpython

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented May 9, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

This moves all the things we planned to remove in 3.15 but didn't to the appropriate pending removal in 3.16 file.

Additionally, move a misplaced entry from the 3.16 C-API removals file to the 3.16 main file removals.

  • Issue: interp-lifecycle.rst has incorrect deprecation ranges #150032

Sorry, something went wrong.

Uh oh!

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

All reactions
StanFromIreland added 2 commits May 9, 2026 10:36
@StanFromIreland
Tidy up 3.15 pending removals
d5ab345
@StanFromIreland
Oops missed that, remove 'em from the 3.15 file
027be87
@StanFromIreland
StanFromIreland requested review from brettcannon, hugovk, savannahostrowski and vstinner May 9, 2026 09:40
@StanFromIreland StanFromIreland added docs Documentation in the Doc dir skip issue skip news labels May 9, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs May 9, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs May 9, 2026
@bedevere-app bedevere-app Bot added the awaiting core review label May 9, 2026
@StanFromIreland StanFromIreland mentioned this pull request May 9, 2026
update the import machinery to only use __spec__ #65961
Open
@read-the-docs-community

read-the-docs-community Bot commented May 9, 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 #32685129 | 📁 Comparing 2352700 against main (46a2c11)

  🔍 Preview build  

36 files changed · ± 36 modified

± Modified

  • c-api/interp-lifecycle.html
  • c-api/sentinel.html
  • c-api/slots.html
  • c-api/stable.html
  • c-api/unicode.html
  • deprecations/c-api-pending-removal-in-3.15.html
  • deprecations/c-api-pending-removal-in-3.16.html
  • deprecations/index.html
  • deprecations/pending-removal-in-3.15.html
  • deprecations/pending-removal-in-3.16.html
  • and 26 more...
All reactions

Sorry, something went wrong.

Uh oh!

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

StanFromIreland added 2 commits May 9, 2026 11:05
@StanFromIreland
Fix missing anchor check
878629e
@StanFromIreland
!fixup
7fec3be
hugovk
hugovk reviewed May 9, 2026
View reviewed changes

@hugovk hugovk left a comment

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.

Thanks for updating this, and the 3.15->3.16 bumps should also be backported.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread Doc/deprecations/index.rst Resolved

Uh oh!

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

Comment thread Doc/deprecations/c-api-pending-removal-in-3.16.rst Resolved

Uh oh!

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

@StanFromIreland
Update the deprecated-removeds, add Py_UNICODE
dbccabb
@StanFromIreland
StanFromIreland requested review from AA-Turner, ZeroIntensity and willingc as code owners May 9, 2026 12:33
@StanFromIreland
StanFromIreland requested a review from hugovk May 9, 2026 13:29
StanFromIreland added 2 commits May 9, 2026 21:07
@StanFromIreland
Add to ignore instead
18a45c1
@StanFromIreland
Merge branch 'main' into deprecations
412a028
willingc
willingc approved these changes May 9, 2026
View reviewed changes

@willingc willingc left a comment

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.

Thanks @StanFromIreland

Sorry, something went wrong.

Uh oh!

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

StanFromIreland reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels May 9, 2026
savannahostrowski
savannahostrowski reviewed May 9, 2026
View reviewed changes
Comment thread Doc/deprecations/pending-removal-in-3.16.rst Resolved

Uh oh!

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

@StanFromIreland @savannahostrowski
Apply suggestions from code review
f24f2c5
Co-authored-by: Savannah Ostrowski <[email protected]>
JelleZijlstra
JelleZijlstra reviewed May 9, 2026
View reviewed changes
Comment thread Doc/deprecations/pending-removal-in-3.16.rst Resolved

Uh oh!

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

@StanFromIreland @JelleZijlstra
Fix existing typo
83e6840
Co-authored-by: Jelle Zijlstra <[email protected]>
@StanFromIreland
StanFromIreland requested review from JelleZijlstra and savannahostrowski May 9, 2026 22:06
JelleZijlstra
JelleZijlstra approved these changes May 9, 2026
View reviewed changes
@warsaw

warsaw commented May 10, 2026

Copy link
Copy Markdown
Member

We could still do it in 3.15 with @hugovk approval.

All reactions

Sorry, something went wrong.

Uh oh!

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

brettcannon
brettcannon reviewed May 11, 2026
View reviewed changes
Comment thread Doc/deprecations/pending-removal-in-3.16.rst Resolved

Uh oh!

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

@StanFromIreland @brettcannon
Add Brett's clarification
d4926e0
Co-authored-by: Brett Cannon <[email protected]>
@StanFromIreland
StanFromIreland requested a review from brettcannon May 11, 2026 21:43
@hugovk

hugovk commented May 12, 2026

Copy link
Copy Markdown
Member

We could still do it in 3.15 with @hugovk approval.

In recent release cycles, we've had feedback that it was too early to remove some things during pre/early alpha and added them back, so I'm a bit cautious about doing during beta.

But if someone wants to do so, please first check things like the top PyPI packages/GitHub/grep.app to get an idea if they're still too widely used, and maybe we can do it before b2.

StanFromIreland reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

hugovk
hugovk reviewed May 12, 2026
View reviewed changes
Comment thread Doc/deprecations/c-api-pending-removal-in-3.15.rst Resolved

Uh oh!

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

Comment thread Doc/deprecations/pending-removal-in-3.15.rst Resolved

Uh oh!

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

@StanFromIreland
Merge branch 'main' into deprecations
2352700
vstinner
vstinner approved these changes May 15, 2026
View reviewed changes

@vstinner vstinner left a comment

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.

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
This was referenced May 18, 2026
Missing Py_SetProgramName, Py_Initialize, PySys_SetArgv* pypy/pypy#3286
Open
interp-lifecycle.rst has incorrect deprecation ranges #150032
Closed
@StanFromIreland StanFromIreland changed the title Tidy up 3.15 pending removals gh-150032: Tidy up 3.15 pending removals May 18, 2026
@StanFromIreland StanFromIreland removed the skip issue label May 18, 2026
@StanFromIreland

StanFromIreland commented May 18, 2026

Copy link
Copy Markdown
Member Author

This now has an issue: #150032

All reactions

Sorry, something went wrong.

Uh oh!

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

@Avasam Avasam mentioned this pull request May 18, 2026
Python C API Deprecations (CPython 3.16 removals) mhammond/pywin32#2588
Open
3 of 7 tasks
savannahostrowski
savannahostrowski approved these changes May 23, 2026
View reviewed changes

@savannahostrowski savannahostrowski left a comment

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.

One question but otherwise, LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread Doc/deprecations/pending-removal-in-3.16.rst
Comment on lines +11 to +14
* Setting :attr:`~module.__package__` on a module while
failing to set :attr:`__spec__.parent <importlib.machinery.ModuleSpec.parent>`
is deprecated. In Python 3.16, :attr:`!__package__` will cease to be
taken into consideration by the import system or standard library. (:gh:`97879`)

@savannahostrowski savannahostrowski May 23, 2026 •
edited
Loading

Uh oh!

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

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.

Suggested change
* Setting :attr:`~module.__package__` on a module while
failing to set :attr:`__spec__.parent <importlib.machinery.ModuleSpec.parent>`
is deprecated. In Python 3.16, :attr:`!__package__` will cease to be
taken into consideration by the import system or standard library. (:gh:`97879`)
* Setting :attr:`~module.__package__` on a module while
failing to set :attr:`__spec__.parent <importlib.machinery.ModuleSpec.parent>`
is deprecated. In Python 3.16, :attr:`!__package__` will cease to be set or
taken into consideration by the import system or standard library. (:gh:`97879`)

I'm not sure that the drop of "set or" was intentional here? It seems that the language changed from the 3.15 pending.

Sorry, something went wrong.

Uh oh!

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

All reactions

@StanFromIreland StanFromIreland May 23, 2026

Copy link
Copy Markdown
Member 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.

It was Brett's change: d4926e0

Sorry, something went wrong.

Uh oh!

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

All reactions

@savannahostrowski savannahostrowski May 23, 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.

But why 🙂 ?

Sorry, something went wrong.

Uh oh!

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

All reactions

@savannahostrowski savannahostrowski May 23, 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.

I'm mainly curious because the __loader__ bullet directly above still uses "set or taken into consideration" language. To an end user the two phrasings probably don't really mean different things, either way the guidance is "stop relying on it", so the divergence between the two bullets reads as accidental.

Sorry, something went wrong.

Uh oh!

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

All reactions

@brettcannon brettcannon May 29, 2026 •
edited
Loading

Uh oh!

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

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.

Because we tried to remove ever reading __package__ and pip broke. So we don't set in anymore in 3.15, but we are not at a place where we can stop reading it if gets set. As for __loader__, it's a different stage of going away.

Sorry, something went wrong.

Uh oh!

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

StanFromIreland reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
brettcannon
brettcannon approved these changes May 29, 2026
View reviewed changes
@StanFromIreland

StanFromIreland commented Jun 3, 2026

Copy link
Copy Markdown
Member Author

I'll leave this one for the RMs to merge.

All reactions

Sorry, something went wrong.

Uh oh!

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

@hugovk
hugovk merged commit 7a468a1 into python:main Jun 3, 2026
32 checks passed

Uh oh!

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

@hugovk

hugovk commented Jun 3, 2026

Copy link
Copy Markdown
Member

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 3, 2026
@bedevere-app bedevere-app Bot removed the awaiting merge label Jun 3, 2026
@StanFromIreland
StanFromIreland deleted the deprecations branch June 3, 2026 14:35
philthompson10 pushed a commit to philthompson10/cpython that referenced this pull request Jun 17, 2026
@StanFromIreland @savannahostrowski
@JelleZijlstra @brettcannon @philthompson10
pythongh-150032: Tidy up 3.15 pending removals (python#149594)
cf354f3
Co-authored-by: Savannah Ostrowski <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
Co-authored-by: Brett Cannon <[email protected]>
@vstinner vstinner mentioned this pull request Sep 23, 2026
C API: Remove deprecated API to configure Python initialization #158001
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hugovk hugovk hugovk left review comments
@savannahostrowski savannahostrowski savannahostrowski approved these changes
@brettcannon brettcannon brettcannon approved these changes
@vstinner vstinner vstinner approved these changes
@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes
@willingc willingc willingc approved these changes
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity 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.

Uh oh!

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

8 participants

@StanFromIreland @warsaw @hugovk @brettcannon @vstinner @JelleZijlstra @willingc @savannahostrowski
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.