On 20/07/14 21:37, Marc Tompkins wrote:
Fourth (and here I differ from some of the others on this list, notably Alan G) - I don't like the "while True: / break" paradigm.
FWIW I don't like it either, but it has become a canonical Python idiom. In fact in this case I suggested he use a for loop to iterate over the file and use a dictionary to store the results... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor