Silly function call lookup stuff?

Fredrik Lundh fredrik at pythonware.com
Tue Sep 27 16:41:22 EDT 2005


Lucas Lemmens wrote:

> Why isn't the result of the first function-lookup cached so that following
> function calls don't need to do the function-lookup at all?
>
> And if the context changes (an import-statement say) reset the
> cached 'function-lookups'.

import isn't the only way for the "context" to change.  how many
other ways can you think of ?

> This way any function would only need to be looked up once.

you haven't really thought this over, have you?

</F> 






More information about the Python-list mailing list