List of Numbers
Alex Martelli
aleax at aleax.it
Sun Apr 13 05:24:05 EDT 2003
Jim Richardson wrote:
...
> I don't know how fast/slow the dict would be to tell the truth, it just
> doesn't seem that "elegant" and elegance, is often (wrongly I know)
> associated with speed.
It's quite usual that in Python the simplest and most elegant solution
can also be very fast. But I dispute that dicts aren't elegant!!!
> Having said that, I have found that usually, the simpler the script, and
> the closer to the pythonic "metal" it is, the faster it is. For some
> reason, the folks who wrote python, are a lot better at programming that
> I am :)
Sure. But dicts are VERY "close to the Pythonic metal"...!
Alex
More information about the Python-list
mailing list