-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
bpo-14243: Optionally delete NamedTemporaryFile on content manager exit but not on file close #22431
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
bpo-14243: Optionally delete NamedTemporaryFile on content manager exit but not on file close #22431
Changes from 15 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
144db7f
inial update. Tests do not work yet
Ev2geny 21f7df0
delete_on_close flag is added to NamedTemporaryFile functionality
Ev2geny 2d7927b
possibility for user to delete temporary file is added without conten…
Ev2geny 4fcddaf
typo in test name is fixed
Ev2geny 76f28f3
📜🤖 Added by blurb_it.
blurb-it[bot] 6be9be6
whatsnew and News file is updated
Ev2geny faf1a34
bro-14243: update to NEWS.d
Ev2geny 589d0b8
Update Lib/test/test_tempfile.py
Ev2geny e22a3db
Doc/whatsnew/3.10.rst is restored from the main. changes will no go …
Ev2geny 3be2f47
Documentation update
Ev2geny 39e8b50
Minor documentation update
Ev2geny 4d8f152
Training whitespaces removed in Doc/library/tempfile.rst
Ev2geny 9ec55f5
New line is added to the end of the news file
Ev2geny d6f382e
Update Doc/library/tempfile.rst
Ev2geny f9dc427
Update Doc/whatsnew/3.12.rst
Ev2geny e29b7d2
Update Doc/whatsnew/3.12.rst
Ev2geny d003a39
Documentation in tempfile.rst is updated based on the feedback from @…
Ev2geny e2fc6db
Merge branch 'fix-issue-14243' of https://github.com/Ev2geny/cpython …
Ev2geny 3ac4e20
Information in whatsnew is moved to the section Improved modules base…
Ev2geny 653cf27
Update Doc/whatsnew/3.12.rst
Ev2geny d5d07f4
Update Doc/library/tempfile.rst
Ev2geny 0b32b28
Update Doc/library/tempfile.rst
Ev2geny 5773e71
wrapping at 80 characters is implemented on the Doc/library/tempfile.rs
Ev2geny d98f270
Update Doc/whatsnew/3.12.rst
Ev2geny 9598e6b
Update Doc/library/tempfile.rst
Ev2geny 5a7e177
Restored (probably accidentry removed by @eryksun's suggestion) parag…
Ev2geny 7e7ad85
Additional minor changes to documentation, based on suggestions from …
Ev2geny 4d5677e
Update Lib/tempfile.py
Ev2geny cf5b1b5
Update Lib/tempfile.py
Ev2geny 7fd339a
Update Lib/tempfile.py
Ev2geny da71a96
Update Lib/tempfile.py
Ev2geny 5e22c9c
Merge branch 'fix-issue-14243' of https://github.com/Ev2geny/cpython …
Ev2geny b1f5152
Update Doc/library/tempfile.rst
Ev2geny 07076e8
Merged with master and resolved merge conflicsts in Doc/whatsnew/3.12…
Ev2geny a0a8ae3
Revert "Merged with master and resolved merge conflicsts in Doc/whats…
Ev2geny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2020-09-28-04-56-04.bpo-14243.YECnxv.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The :class:`tempfile.NamedTemporaryFile` has a new optional parameter *delete_on_close* |
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.
Uh oh!
There was an error while loading. Please reload this page.