On Sat, Apr 18, 2009 at 1:37 PM, Andy Ray Terrel <andy.ter...@gmail.com> wrote: > > You can override the _sympystr_ method (or the defined printmethod in > the selected printer) > >>>> from sympy import * >>>> t = Symbol('t') >>>> q1 = Function('q1')(t) >>>> q1._sympystr_=lambda : 'q1' >>>> print(q1) > q1
Thanks for all the responses. Yes, writing your own Printer is the way to do it. In fact, you already did that in pydy: http://github.com/hazelnusse/pydy/blob/c895ca4114fba865490f1b3021cc3c639b30d83a/pydy.py#L996 so just override the _print_Function method. Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---