Dictionaries with tuples or tuples of tuples

Jon Reyes everystepsayes at gmail.com
Mon Feb 18 20:38:36 EST 2013


Hi Mark. Well, doesn't iteritems() work the same? or am I missing something? By the way I'm sure I read the dictionaries part of Python but I'm unsure if it would take int's as a key for dictionaries. I've been weaned on Java where the keys of hashmaps are always Strings. 

PS: Just checked, wow I could use ints as keys. Awesome!



More information about the Python-list mailing list