On 27 April 2012 12:41, Harold E. <[email protected]> wrote: > In fact, I remembered that dict was not hashable, but by reading the doc I > saw "dict.__hash__", so I was thinking that the problem came not from this; > actually, this was just a normal point. > So thank for your explanation; finally I did a new class based on tuple but > with some dict-behaviors, I think it was the simpler since Dimension is a > very simple object. > On the other hand the proliferation of simple classes that do the same thing may be a bad idea. If you have something in the standard library or in the utilities implemented by sympy it would be best to use it instead of reimplement it even if it is a five-liner.
-- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. 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.
