On Tue, 27 Sep 2005 22:41:22 +0200, Fredrik Lundh wrote: > 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 ?
So myLocalFunc = hisRemoteFunc may break if you're not carefull you mean. If not then there's room for improvement. > >> This way any function would only need to be looked up once. > > you haven't really thought this over, have you? > > </F> You haven't really answered my questions have you? L. -- http://mail.python.org/mailman/listinfo/python-list