Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: d.keys() and d.values() (http://www.velocityreviews.com/forums/t318791-re-d-keys-and-d-values.html)

Andreas Jung 06-24-2003 10:08 AM

Re: d.keys() and d.values()
 
I don't think it is guaranteed but usually it works. Why don't you use
d.items()???

-aj

--On Dienstag, 24. Juni 2003 12:03 Uhr +0200 Gerrit Holl
<gerrit@nl.linux.org> wrote:

> Hi,
>
> is it guaranteed that dict(zip(d.keys(), d.values())) == d?
> In words, do .keys() and .values() always have the same order? Is
> it safe to rely on this?
>
> yours,
> Gerrit.
>
> --
> 279. If any one by a male or female slave, and a third party claim it,
> the seller is liable for the claim.
> -- 1780 BC, Hammurabi, Code of Law
> --
> Asperger Syndroom - een persoonlijke benadering:
> http://people.nl.linux.org/~gerrit/
> Het zijn tijden om je zelf met politiek te bemoeien:
> http://www.sp.nl/
>
> --
> http://mail.python.org/mailman/listinfo/python-list








All times are GMT. The time now is 04:51 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.