Dictionary to tuple

Jeremy Sanders jeremy+complangpython at jeremysanders.net
Tue Jun 28 11:40:02 EDT 2005


Erik Max Francis wrote:

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

Yes, but I think he meant:

t = tuple(d.items())

-- 
Jeremy Sanders
http://www.jeremysanders.net/



More information about the Python-list mailing list