Serhiy Storchaka added the comment: Well, we can fix this without breaking the protocol. The accumulate() object with state is None can be reconstructed as islice(accumulate(chain([None], iterator)), 1, None).
Proposed patch implements this solution. ---------- Added file: http://bugs.python.org/file41261/itertools_accumulate_state_is_none.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25718> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com