On Sat, 13 Feb 2021 at 12:34, Paul Royik <[email protected]> wrote: > > In StrPrinter there is > def emptyPrinter(self, expr): > if isinstance(expr, str): > return expr > elif isinstance(expr, Basic): > return repr(expr) > else: > return str(expr) > > Is `return repr(expr)` reachable if `StrPrinter` defines `_print_Basic` that > prints all `Basic` objects?
Non-Basic objects can also be printed using the printers. They just need to inherit Printable (which is a superclass of Basic). Oscar -- 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/CAHVvXxSi03TNcr8VZuZ%3DM20oqYLuU3sNTr7pYHxpYdViOxfKhA%40mail.gmail.com.
