speedup up dictionary access

Aahz Maruch aahz at panix.com
Sat May 12 22:22:10 EDT 2001


In article <zGjL6.59773$%K2.9919552 at typhoon.nyroc.rr.com>,
Darrell <news at dorb.com> wrote:
>
>Last I checked exceptions are slower than "if--else"

IIRC, exceptions are slower, but if exceptions are rarely raised, a try
block is faster.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"I am not a helpless chained naked virgin who is going to be eaten by the
dragon; I am a sexually mature feline-type-dragon who has chosen to live
with the dragon."  --SJM



More information about the Python-list mailing list