On Thu, Dec 27, 2007 at 11:25:11PM +0530, Goutham D L wrote: > The __call__ method for the core.basic.Basic class has 2 return statements > > *return Basic.Function(self[0])(*args) > print self, args > return Basic.Apply(self, *args) > > *Can someone explain whats going on here?
Unfortunately it's an artifact left after transition from old functions scheme to current approach. see http://code.google.com/p/sympy/issues/detail?id=329 for the history. But thanks for the question, I've prepared a patch with cleanup. It even fixes one bug with powsimp, so really thanks for the spot! see http://groups.google.com/group/sympy-patches/browse_thread/thread/8c4f837089fa68bb > Also what does the *cache_it_immutable *function do exactly? It's a caching decorator like cache_it, but it assumes that the result is always immutable, so there is no need to copy it each time it is fetched from cache (compare with cache_it (which points to cache_it_fast), and pay special attention to mycopy) -- ????? ????????, ??????. http://landau.phys.spbu.ru/~kirr/aiv/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---