Inverse of dict(zip(x,y))

Lie Ryan lie.1296 at gmail.com
Wed Mar 4 12:33:32 CET 2009


Andre Engels wrote:
> y = d.values() might also work, but I am not sure whether d.keys() and
> d.values() are guaranteed to use the same order.

If they were called immediately after each other I think they should, 
but better not rely on it.



More information about the Python-list mailing list