Is your class subclassing from Basic (or Expr)? If not, it won't be
inheriting the __str__ method that automatically uses sstr().
Aaron Meurer
On Sun, Sep 25, 2022 at 11:00 AM brombo wrote:
>
> In my class I have _latex and _sympystr. Your latex() function uses my
> _latex but str() does not
In my class I have _latex and _sympystr. Your latex() function uses my
_latex but str() does not use _sympystr I have to define __str__() in my
class to print correctly. How should I use _sympystr to return the correct
string.
def _sympystr(self,printer):
if self.order == 0: