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


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to