Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-141045: Document that shutil.Error is a subclass of OSError#141152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Lakshya-Upadhyaya wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromLakshya-Upadhyaya:document-shutil-error-inheritance

Conversation

@Lakshya-Upadhyaya
Copy link

@Lakshya-UpadhyayaLakshya-Upadhyaya commentedNov 6, 2025
edited by github-actionsbot
Loading

Fixes#141045

This updates the documentation forshutil.Error to note that it is a subclass ofOSError. This clarifies that code catchingOSError will also catchshutil.Error, similar to howhttp.cookiejar.LoadError is documented.

File modified:

  • Doc/library/shutil.rst

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

@python-cla-bot
Copy link

python-cla-botbot commentedNov 6, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

@giampaologiampaoloAwaiting requested review from giampaologiampaolo is a code owner

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Document the fact thatshutil.Error is a subclass ofOSError

2 participants

@Lakshya-Upadhyaya@StanFromIreland

[8]ページ先頭

©2009-2025 Movatter.jp