[Tutor] (no subject)
Alan Gauld
alan.gauld at btinternet.com
Sun Jul 20 23:37:42 CEST 2014
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
More information about the Tutor
mailing list