empty clause of for loops

Sven R. Kunze srkunze at mail.de
Wed Mar 16 06:23:15 EDT 2016


Hi,

a colleague of mine (I write this mail because I am on the list) has the 
following issue:


for x in my_iterable:
     # do
empty:
     # do something else


What's the most Pythonic way of doing this?

Best,
Sven



More information about the Python-list mailing list