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-101100: Fix Sphinx nitpicks inlibrary/tempfile.rst#112886

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

Merged
AlexWaygood merged 2 commits intopython:mainfromAlexWaygood:tempfile-nits
Dec 9, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygoodAlexWaygood commentedDec 8, 2023
edited by github-actionsbot
Loading

Comment on lines +186 to +202
.. attribute:: TemporaryDirectory.name

The directory name can be retrieved from the :attr:`!name` attribute of the
returned object. When the returned object is used as a :term:`context manager`, the
:attr:`!name` will be assigned to the target of the :keyword:`!as` clause in
the :keyword:`with` statement, if there is one.

.. method:: TemporaryDirectory.cleanup

The directory can be explicitly cleaned up by calling the
:meth:`!cleanup` method. If *ignore_cleanup_errors* is true, any unhandled
exceptions during explicit or implicit cleanup (such as a
:exc:`PermissionError` removing open files on Windows) will be ignored,
and the remaining removable items deleted on a "best-effort" basis.
Otherwise, errors will be raised in whatever context cleanup occurs
(the :meth:`!cleanup` call, exiting the context manager, when the object
is garbage-collected or during interpreter shutdown).
Copy link
Member

Choose a reason for hiding this comment

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

👍

BeforeAfter
imageimage

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@AlexWaygoodAlexWaygoodenabled auto-merge (squash)December 9, 2023 22:01
@AlexWaygoodAlexWaygood merged commit54410e6 intopython:mainDec 9, 2023
@AlexWaygoodAlexWaygood deleted the tempfile-nits branchDecember 9, 2023 22:08
@miss-islington-app
Copy link

Thanks@AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry,@AlexWaygood, I could not cleanly backport this to3.12 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 54410e6bd9460c9899b17132f34fd1a68b0cbdfe 3.12

@miss-islington-app
Copy link

Sorry,@AlexWaygood, I could not cleanly backport this to3.11 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 54410e6bd9460c9899b17132f34fd1a68b0cbdfe 3.11

@bedevere-app
Copy link

GH-112910 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelDec 9, 2023
AlexWaygood added a commit to AlexWaygood/cpython that referenced this pull requestDec 9, 2023
…python#112886)(cherry-picked from commit54410e6)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@bedevere-app
Copy link

GH-112913 is a backport of this pull request to the3.11 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.11only security fixes labelDec 9, 2023
AlexWaygood added a commit to AlexWaygood/cpython that referenced this pull requestDec 9, 2023
…python#112886)(cherry-picked from commit54410e6)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
AlexWaygood added a commit that referenced this pull requestDec 9, 2023
) (#112910)(cherry-picked from commit54410e6)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
AlexWaygood added a commit that referenced this pull requestDec 9, 2023
) (#112913)(cherry-picked from commit54410e6)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…n#112886)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…n#112886)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk approved these changes

Assignees

@AlexWaygoodAlexWaygood

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@AlexWaygood@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp