Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
.. 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). |
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.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Thanks@AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry,@AlexWaygood, I could not cleanly backport this to
|
Sorry,@AlexWaygood, I could not cleanly backport this to
|
GH-112910 is a backport of this pull request to the3.12 branch. |
…python#112886)(cherry-picked from commit54410e6)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
GH-112913 is a backport of this pull request to the3.11 branch. |
…python#112886)(cherry-picked from commit54410e6)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…n#112886)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…n#112886)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
📚 Documentation preview 📚:https://cpython-previews--112886.org.readthedocs.build/