I don't think that would work if we have assumptions that are separate from the objects themselves. In other words, if the assumptions change, then the hash would have to change.
Aaron Meurer On Apr 30, 2011, at 12:21 PM, Tom Bachmann wrote: > >> It should also be emphasized that it isn't just a simple notion of >> cleaning up assumptions after yourself -- the cache interacts in quite an >> intertwined way. Under the right assumptions, expressions will be >> simplified, and variables will be assigned certain values. If that's stored >> in the cache, changing any related assumption will invalidate the result. > > Why not make assumptions part of the hash of an object? At least to > the extent that the cache is concerned? -- 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 sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.