I wonder if this is really necessary. I'd say as a general rule that
printing logic for things that are part of SymPy should go in the
printers themselves. The printers should already support dispatching
to non-Basic classes. Is there some other reason this is needed?
An advantage of keeping the code in the printer itself is that any
time someone does a code cleanup in the printers they will apply it to
the physics printers as well. It also makes it easier for those
printers to reuse internal helper functions in the printers. I've
noticed that the physics objects have had a lot more printing bugs
than most other SymPy objects.
Aaron Meurer
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAP7f1Ai4Y-z9g%2Bpbf_XXCPdZSMEZjrwNp%3Dcv8Ddk7WHJ8ixACA%40mail.gmail.com.