A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-September/141631.html below:

[Python-Dev] semantics of subclassing things from itertools

[Python-Dev] semantics of subclassing things from itertools [Python-Dev] semantics of subclassing things from itertoolsSerhiy Storchaka storchaka at gmail.com
Mon Sep 14 10:19:51 CEST 2015
On 10.09.15 15:50, Maciej Fijalkowski wrote:
> On Thu, Sep 10, 2015 at 10:26 AM, Serhiy Storchaka <storchaka at gmail.com> 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.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4