Terry Reedy <tjre...@udel.edu>: > On 4/17/2017 3:11 AM, Marko Rauhamaa wrote: >> Here's statistics from a medium-sized project of mine: >> >> while True: 34 >> while <condition>: 39 >> for ... in ...: 158 > > As I posted previously, the ratio of for-loops in the stdlib is about 7 > to 1.
What I notice in my numbers is that about one half of my while loops are "while True", and about a third of my loops are while loops. Marko -- https://mail.python.org/mailman/listinfo/python-list