|
|
|
|
|
by adambard
4573 days ago
|
|
Edit: The below is actually wrong > For years I’ve wanted to be able to write my own control flow structures, such as an each...else that runs an else block if the each is empty (Handlebars templates have this). Actually, python does have a (little-known) `for...else` structure that does what you want. http://psung.blogspot.ca/2007/12/for-else-in-python.html |
|