[Tutor] Dictionaries
Alan Gauld
alan.gauld at freenet.co.uk
Sat Jan 28 01:48:45 CET 2006
> 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
More information about the Tutor
mailing list