Paul Rubin wrote: > Peter Hansen <[EMAIL PROTECTED]> writes: > >>(And, if I were "optimizing", I would of course dispense with the >>dynamic creation of the static table upon every execution of >>expiration(), and move it outside the function.) > > Replacing it with a tuple might be enough for that.
You're right, and in fact that would actually be even faster since then it's a LOAD_CONST instead of a LOAD_GLOBAL. -Peter -- http://mail.python.org/mailman/listinfo/python-list