[Python-ideas] Control Flow - Never Executed Loop Body
Ethan Furman
ethan at stoneleaf.us
Thu Mar 24 18:39:28 EDT 2016
On 03/24/2016 03:14 PM, Michael Selik wrote:
> More specifically, a time when the loop didn't run because the iterable
> was empty AND the iterable didn't have a len to make that a simple check.
>
> Which suddenly gives me an idea...
>
> class Peeking:
...
You mean like this answer? http://stackoverflow.com/a/7976272/208880
--
~Ethan~
More information about the Python-ideas
mailing list