On 10.09.15 15:50, Maciej Fijalkowski wrote:
On Thu, Sep 10, 2015 at 10:26 AM, Serhiy Storchaka <[email protected]> wrote:
There is another reason why itertools iterators can't be implemented as
simple generator functions. All iterators are pickleable in 3.x.

maybe the documentation should reflect that? (note that generators are
pickleable on pypy anyway)

This pickling is not compatible with CPython. So even if itertools classes would not subclassable, you would need to implement itertools iterators as classes.

_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to