[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ideas
Subject:    Re: [Python-ideas] An exhaust() function for iterators
From:       Serhiy Storchaka <storchaka () gmail ! com>
Date:       2013-09-29 20:42:20
Message-ID: l2a3a8$7p8$1 () ger ! gmane ! org
[Download RAW message or body]

29.09.13 07:06, Clay Sweetser написав(ла):
> I would like to propose that this function, or one very similar to it,
> be added to the standard library, either in the itertools module, or
> the standard namespace.
> If nothing else, doing so would at least give a single *obvious* way
> to exhaust an iterator, instead of the several miscellaneous methods
> available.

I prefer optimize the for loop so that it will be most efficient way (it 
is already most obvious way).

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic