This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients MSeifert, kristjan.jonsson, rhettinger, serhiy.storchaka
Date 2017-03-24.21:30:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490391017.41.0.168034820978.issue29897@psf.upfronthosting.co.za>
In-reply-to
Content
chain(x) is a shortcut for chain.from_iterable(iter(x)).

Neither copy.copy() nor __reduce__ don't have particular relation to this. Consider following example:

>>> from itertools import chain
>>> i = iter([[1, 2, 3], [4, 5, 6]])
>>> a = chain.from_iterable(i)
>>> b = chain.from_iterable(i)
>>> next(a)
1
>>> next(b)
4
>>> tuple(a)
(2, 3)
>>> tuple(b)
(5, 6)
History
Date User Action Args
2017-03-24 21:30:17serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, kristjan.jonsson, MSeifert
2017-03-24 21:30:17serhiy.storchakasetmessageid: <1490391017.41.0.168034820978.issue29897@psf.upfronthosting.co.za>
2017-03-24 21:30:17serhiy.storchakalinkissue29897 messages
2017-03-24 21:30:17serhiy.storchakacreate