-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-42536: GC track recycled tuples #23623
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
Merged
brandtbucher
merged 23 commits into
python:master
from
brandtbucher:untracked-zip-result
Dec 5, 2020
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6f7abb3
Add failing regression test.
brandtbucher 5c7b815
Re-track recyled result tuples.
brandtbucher c8f161a
Blurb add.
brandtbucher 78d1c5d
Feedback from code review
brandtbucher 698e337
Add failing regression test for enumerate
brandtbucher a41a132
Re-track recycled enumerate result tuples
brandtbucher 8b7e96a
Add failing regression tests for dict.items
brandtbucher 2ac50cf
Re-track recycled dict.items result tuples
brandtbucher f0aee47
Add failing regression test for OrderedDict.items
brandtbucher 363256b
Re-track recycled OrderedDict.items result tuples
brandtbucher 63db279
Add failing regression tests for itertools
brandtbucher 027a51f
Re-track recycled itertools result tuples
brandtbucher 4053bc6
Reword comments
brandtbucher 83cdf03
Reword comments
brandtbucher 3583ba4
Re-track recycled reduce arg tuples
brandtbucher 1ac7590
Reword comments
brandtbucher 6e12b8b
Remove comment
brandtbucher
8000
Dec 4, 2020
80f59e4
Update NEWS entry.
brandtbucher 9005df4
Fix typo
brandtbucher 6ec2368
Replace single-character names
brandtbucher dfcb32c
Group new itertools tests
brandtbucher 06e05f4
Beef up the NEWS entry
brandtbucher 60e7519
Fix doc build
brandtbucher 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
8000
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
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
26 changes: 26 additions & 0 deletions
26
Misc/NEWS.d/next/Core and Builtins/2020-12-02-20-23-31.bpo-42536.Kx3ZOu.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,26 @@ | ||
Several built-in and standard library types now ensure that their internal | ||
result tuples are always tracked by the :term:`garbage collector | ||
<garbage collection>`: | ||
|
||
- :meth:`collections.OrderedDict.items() <collections.OrderedDict>` | ||
|
||
- :meth:`dict.items` | ||
|
||
- :func:`enumerate` | ||
|
||
- :func:`functools.reduce` | ||
|
||
- :func:`itertools.combinations` | ||
|
||
- :func:`itertools.combinations_with_replacement` | ||
|
||
- :func:`itertools.permutations` | ||
|
||
- :func:`itertools.product` | ||
|
||
- :func:`itertools.zip_longest` | ||
|
||
- :func:`zip` | ||
|
||
Previously, they could have become untracked by a prior garbage collection. | ||
Patch by Brandt Bucher. |
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
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
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.