Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9a4b14c
gh-101277: Add repeat type to module state
erlend-aasland Jan 24, 2023
a66b888
gh-101277: Add islice type to module state
erlend-aasland Jan 24, 2023
d18169b
gh-101277: Add chain type to module state
erlend-aasland Jan 24, 2023
e574de1
gh-101277: Add tee type to module state
erlend-aasland Jan 24, 2023
053b759
gh-101277: Add tee data object type to module state
erlend-aasland Jan 24, 2023
94972ba
Add NEWS
erlend-aasland Jan 24, 2023
da57b52
Purge globals-to-fix.tsv
erlend-aasland Jan 24, 2023
e937984
Make chain and repeat immutable
erlend-aasland Jan 24, 2023
4264f8b
Add batched type to module state
erlend-aasland Jan 24, 2023
930fbe1
Use PyType_GetModuleState for types which cannot be subclassed
erlend-aasland Feb 3, 2023
d45d438
Revert unneeded changes that made the code more readable
erlend-aasland Feb 8, 2023
cf3d528
Ditto
erlend-aasland Feb 8, 2023
c4981ff
Ditto again
erlend-aasland Feb 8, 2023
1a86a5d
Store state in accumulateobject to speed up __reduce__
erlend-aasland Feb 8, 2023
b57d177
Store state in teeobject to speed up __setstate__
erlend-aasland Feb 8, 2023
d7bd16a
Remove unneeded change that made the code more readable
erlend-aasland Feb 8, 2023
d16bed1
Speed up teedataobject_jumplink() by passing state from teeobject
erlend-aasland Feb 8, 2023
68e63dd
Remove unneeded PEP-7 change
erlend-aasland Feb 8, 2023
9f68cd1
Fix tee_copy
erlend-aasland Feb 9, 2023
ef2d52f
Sync with main
erlend-aasland Feb 9, 2023
a9c6ce5
Visit and clear teedataobject_type
erlend-aasland Feb 9, 2023
8f554f4
Add clear methods to all types
erlend-aasland Feb 9, 2023
1351172
Sync with main
erlend-aasland Feb 10, 2023
5213d1f
Revert "Add clear methods to all types"
erlend-aasland Feb 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tee_copy
  • Loading branch information
erlend-aasland committed Feb 9, 2023
commit 9f68cd16eb20a90d7e688e10b338fc17ce642061
1 change: 1 addition & 0 deletions Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ tee_copy(teeobject *to, PyObject *Py_UNUSED(ignored))
newto->dataobj = (teedataobject*)Py_NewRef(to->dataobj);
newto->index = to->index;
newto->weakreflist = NULL;
newto->state = to->state;
PyObject_GC_Track(newto);
return (PyObject *)newto;
}
Expand Down