New submission from Serhiy Storchaka: Proposed patch updates tests for iterators of mutable sequences. Now tested iterators in all four states (initial, running, empty and exhausted), and tested that unpickled iterator is linked with a sequence, not with an independed copy (as in case of dict iterators).
Note that there is a difference in the behavior of exhausted array iterator from other iterators. Perhaps this should be changed. ---------- components: Tests files: iterators_pickle_tests.patch keywords: patch messages: 257530 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Add new tests for pickling iterators of mutable sequences type: enhancement versions: Python 2.7, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file41507/iterators_pickle_tests.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26015> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com