I want to create a class that makes expression colored.
class Colored(Expr):
    pass

How do I make Colored behave exactly as its arg, when I sort args?

(x+Colored(2)).as_ordered_terms() should give the same as 
(x+2).as_ordered_terms()
(x*Colored(y)).as_ordered_factors() should give the same as 
(x*y).as_ordered_factors()
Do I need to override some methods?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/603a18c5-d62c-4772-bb9c-94787f7e7798n%40googlegroups.com.

Reply via email to