> their equivalent for keys and values. I notice Ken suggests iteritems(), > while Alan suggests items() only.
I'm old fashioned and rarely use new language features until I really have to. Kent uses the more modern idioms. I think iteritems is the preferred usage nowadays, but its longer to type and for most jobs has no real advantage. Alan G Author of the learn to program web tutor http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor