Nicholas Bastin wrote:
> On 9/4/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
 >
> > Well, what about dict((x, d[x]) for x in d) ? Doesn't strike me as ugly...
> 
> It doesn't strike me as ugly, it just strikes me as slow.

Are people forgetting that in 3.0

   dict(d.items())

will do the same thing very efficiently?

Of course, if you know you have a dict, d.copy() is even
more efficient.

--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to