Skip to content

gh-102591: Document that urlcleanup resets the global opener#153562

Merged
orsenthil merged 2 commits into
python:mainfrom
Taeknology:gh-102591-document-urlcleanup
Jul 11, 2026
Merged

gh-102591: Document that urlcleanup resets the global opener#153562
orsenthil merged 2 commits into
python:mainfrom
Taeknology:gh-102591-document-urlcleanup

Conversation

@Taeknology

@Taeknology Taeknology commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Document that urllib.request.urlcleanup() resets the default global opener
installed by urllib.request.install_opener().

This documents existing behavior and does not change the implementation.

Validation:

  • sphinx-lint passed
  • HTML documentation build passed with no warnings

Closes #102591

@read-the-docs-community

read-the-docs-community Bot commented Jul 11, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33546105 | 📁 Comparing e7803f4 against main (9ca8927)

  🔍 Preview build  

4 files changed
± library/asyncio-queue.html
± library/urllib.request.html
± tutorial/introduction.html
± whatsnew/changelog.html

@Taeknology Taeknology marked this pull request as ready for review July 11, 2026 12:42

@orsenthil orsenthil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@orsenthil orsenthil added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 11, 2026
@orsenthil orsenthil enabled auto-merge (squash) July 11, 2026 19:32
@orsenthil orsenthil merged commit bbd1f2f into python:main Jul 11, 2026
30 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 11, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @Taeknology for the PR, and @orsenthil for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Jul 11, 2026

Copy link
Copy Markdown

GH-153588 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 11, 2026
@bedevere-app

bedevere-app Bot commented Jul 11, 2026

Copy link
Copy Markdown

GH-153589 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 11, 2026
@bedevere-app

bedevere-app Bot commented Jul 11, 2026

Copy link
Copy Markdown

GH-153590 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jul 11, 2026
orsenthil added a commit that referenced this pull request Jul 11, 2026
…H-153562) (#153588)

gh-102591: Document that urlcleanup resets the global opener (GH-153562)
(cherry picked from commit bbd1f2f)

Co-authored-by: Taeknology <20297177+Taeknology@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
orsenthil added a commit that referenced this pull request Jul 11, 2026
…H-153562) (#153589)

gh-102591: Document that urlcleanup resets the global opener (GH-153562)
(cherry picked from commit bbd1f2f)

Co-authored-by: Taeknology <20297177+Taeknology@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
orsenthil added a commit that referenced this pull request Jul 11, 2026
…H-153562) (#153590)

gh-102591: Document that urlcleanup resets the global opener (GH-153562)
(cherry picked from commit bbd1f2f)

Co-authored-by: Taeknology <20297177+Taeknology@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Docs for urllib.request.urlcleanup does not mention that it will uninstall openers installed with urllib.request.install_opener

2 participants