Dictionary to tuple

Erik Max Francis max at alcyone.com
Tue Jun 28 11:28:50 EDT 2005


bruno modulix wrote:

> Err... don't you spot any useless code here ?-)
> 
> (tip: dict.items() already returns a list of (k,v) tuples...)

But it doesn't return a tuple of them.  Which is what the tuple call 
there does.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   But when I reached the finished line / Young black male
   -- Ice Cube



More information about the Python-list mailing list