Python 3.1 beta 1
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Thu May 7 17:33:07 EDT 2009
Terry Reedy:
bearophile:
> > Well, I'd like function call semantics pass-in keyword arguments to
> > use OrderedDicts then... :-)
[...]
> It would require a sufficiently fast C implementation.
Right.
Such dict is usually small, so if people want it ordered, it may be
better to just use an array of name-value structs instead of a dict or
ordered dict. Iterating on a 10-pair array is fast on modern CPUs.
Bye,
bearophile
More information about the Python-list
mailing list