On 24/06/16 14:07, Alex Hall wrote:

> but I never knew for-else was available. 

for-else is useful although I don't like else for it, I would have
preferred something like for-also as being more meaningful.

> Are there other constructs that I may have missed

Probably. :-)
Are you aware of try-else?
It's not often seen and never strictly needed but it does
sometimes make the code intention clearer.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to