]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34573: Simplify __reduce__() of set and dict iterators. (GH-9050)
authorSergey Fedoseev <fedoseev.sergey@gmail.com>
Sat, 20 Oct 2018 00:43:33 +0000 (05:43 +0500)
committerPablo Galindo <Pablogsal@gmail.com>
Sat, 20 Oct 2018 00:43:33 +0000 (01:43 +0100)
commit6395844e6adebc12c4eba1fb75c5e7c9c8b89f85
tree7e56ef9face3621c7de7a474495172dcde55f55a
parent027664a3d5ebad575aafe5fcc572e3b05f7f24e5
bpo-34573: Simplify __reduce__() of set and dict iterators. (GH-9050)

Simplify the pickling of set and dictionary objects iterators by consuming
the iterator into a list with PySequence_List.
Objects/dictobject.c
Objects/setobject.c