It's related, because currently all canonicalization happens in the class constructor, and it's impossible for classes to define their own canonicalization (i.e., what happens in the constructor) due to lack of dispatch.
Aaron Meurer On Wed, Jul 3, 2013 at 12:03 PM, Ondřej Čertík <ondrej.cer...@gmail.com> wrote: > On Wed, Jul 3, 2013 at 10:52 AM, Aaron Meurer <asmeu...@gmail.com> wrote: >> When we've talked about this in the past, we put the ideas at >> https://github.com/sympy/sympy/wiki/Canonicalization. So take a look >> at what is there, and add things if you have any more ideas. > > I've added a link to this thread. Note that the page is about > canonical simplification, which happens after the expression is > constructed. The double dispatch (this thread) happens before any > canonical simplification happens. As correctly noted in the "Resuming > one possible solution taken from mail-list discussions" section in the > wiki. > > > Ondrej > > -- > 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 sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.