change of random state when pyc created??
Carsten Haese
carsten at uniqsys.com
Thu May 10 12:55:28 EDT 2007
On Thu, 2007-05-10 at 11:29 -0500, Robert Kern wrote:
> """Never rely on the order of dictionaries and sets."""
Easy, Robert, there's a baby in that bathwater.
I think it's useful to note that the arbitrary ordering returned by
dict.keys() et al. is locally stable in the absence of intervening
modifications, as long as the guarantee is worded in a way that prevents
overly optimistic reliance on that ordering.
-Carsten
More information about the Python-list
mailing list