On Friday, January 16, 2015 at 11:49:13 AM UTC+1, [email protected] wrote: > > I've put it on github: https://github.com/warpfel/PyLie > > I had a quick look at your code. I saw that LieStructureConstantTable takes only the dimension as a parameter. I suppose you fill the structure constant table by hand after the construction.
Objects in SymPy usually are fully defined by the arguments passed to the constructors. Just consider that some functions, such as *simplify( )*, may re-instantiate your object, so any data you add after its creation gets lost. Furthermore, objects should also be immutable. Consider a SymPy object becoming part of an expression, while on some other part of the code the same object gets modified. This would alter all expressions containing references to that object. Modifying an object after it has been constructed is usually considered a bug in SymPy. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/7d6ce214-070c-4df2-b6b7-3c80bb0fdac6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
