container-indepentent iteration code ?

flacco flacco002 at spambadTwilight-systems.com
Wed Sep 8 19:27:38 EDT 2004


is there a way to iterate over the *values* in a list/dict/whatever, 
regardless of whether it's a list, dict, or whatever?  ie, the iteration 
code will not know beforehand what kind of container it's getting.





More information about the Python-list mailing list