> > Aren't some results dependent on assumptions? I don't see how you can > > cache independent of assumptions and not have problems. > > For example: > > 1) check that there are no global or local assumptions set > 2) store the expression > > > retrieve: > > * check 1) > * use cache
How about: 0) generate and store global_assumptions_hash whenever global assumptions are changed. 1) generate expr_hash from (expression, local_assumtions) 2) construct cache key as (expr_hash, global_assumtions_hash) 3) use cache Øyvind -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.