Fundamental Function Question (beginner)

Scott scott.freemire at
Mon Jan 11 21:54:23 CET 2010

> There's nothing wrong with building dicts or other lookup tables outside
> a function in order to avoid re-creating them every time the function is
> called.

Brilliant! I didn't think of that. I guess I accidentally did it right
this time as I query that dictionary quite a few times from the

Thanks MRAB and All!

More information about the Python-list mailing list