[Python-ideas] Integrate some itertools into the Python syntax
Chris Barker - NOAA Federal
chris.barker at noaa.gov
Thu Mar 24 19:52:36 EDT 2016
> Hmm.
>
> empty = True
> for stuff in seq:
> empty = False
> do_stuff
> if empty:
> do_something_else
>
> is two lines longer than the above (if you expand the do_the_for_loop)
> and seems pretty obvious and robust. What do you dislike about it?
Not horrible --- but see the other thread if you want to see it
discussed to death :-)
-CHB
More information about the Python-ideas
mailing list