[Python-ideas] Iteritems() function?

Matt Billenstein matt at vazor.com
Wed Jun 8 19:57:28 CEST 2011


On Wed, Jun 08, 2011 at 01:25:42PM +0200, Masklinn wrote:
> You could just convert everything to a dict:
>> for first, second in dict(some_items).iteritems():
> # etc?

That option won't necessarily preserve the order of the original sequence where
perhaps it matters...
m
-- 
Matt Billenstein
matt at vazor.com
http://www.vazor.com/


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /