Chris wrote: > Is there a way to stop this behavior? I want to process this dictionary > in the order it's in, element by element. I'm running Python 2.3, if > that helps.
As said previously, you either want a list (which are ordered), or an ordered-dictionary (not a Python native type, see http://www.voidspace.org.uk/python/odict.html) dict datatypes do not maintain any specific order and aren't really meant to, they're just handy, 'fast' hash lookups. Brett -- http://mail.python.org/mailman/listinfo/python-list