Fundamental Function Question (beginner)

Scott scott.freemire at gmail.com
Mon Jan 11 15:54:23 EST 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
function.

Thanks MRAB and All!



More information about the Python-list mailing list