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 steven.daprano
Recipients NeilGirdhar, docs@python, steven.daprano
Date 2015-07-13.01:57:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20150713015734.GK27268@ando.pearwood.info>
In-reply-to <1436751446.36.0.0536875668561.issue24624@psf.upfronthosting.co.za>
Content
On Mon, Jul 13, 2015 at 01:37:26AM +0000, Neil Girdhar wrote:
> 
> New submission from Neil Girdhar:
> 
> In the description of the consume recipe:
[...]
> iterator should be replaced with iterable.  This function accepts strings for example, which are not iterators.

It *accepts* strings, but it doesn't consume them. It runs through the 
string, but the string still exists and you can iterate over it again 
and again and again.

The intent of the recipe is to consume an *iterator* not arbitrary 
iterables. I don't believe the recipe or its description needs to be 
changed.
History
Date User Action Args
2015-07-13 01:57:42steven.dapranosetrecipients: + steven.daprano, docs@python, NeilGirdhar
2015-07-13 01:57:42steven.dapranolinkissue24624 messages
2015-07-13 01:57:41steven.dapranocreate