[sympy] sympy.printing ignores __repr__ and __str__

2012-02-10 Thread Casey W. Stark
Hi all. I'm writing a library that depends on sympy and I was having trouble with sympy.printing. I have a class called Unit that behaves slightly differently than sympy.physics.Unit. Its superclass is also AtomicExpr, but instead of holding name and abbrev attributes, it holds symbol (string) an

Re: [sympy] sympy.printing ignores __repr__ and __str__

2012-02-10 Thread Aaron Meurer
On Fri, Feb 10, 2012 at 1:01 PM, Casey W. Stark wrote: > Hi all. > > I'm writing a library that depends on sympy and I was having trouble > with sympy.printing. > > I have a class called Unit that behaves slightly differently than > sympy.physics.Unit. Its superclass is also AtomicExpr, but instea

Re: [sympy] sympy.printing ignores __repr__ and __str__

2012-02-10 Thread Casey W. Stark
Hi Aaron. Thanks for the quick reply. I think I understand the printing behavior a lot better now, and why it's that way. The one thing I would suggest is adding a list of the printing methods to the docs there. As far as I can tell, the printmethod values are only in the source. Maybe under the

Re: [sympy] sympy.printing ignores __repr__ and __str__

2012-02-11 Thread Aaron Meurer
On Fri, Feb 10, 2012 at 4:03 PM, Casey W. Stark wrote: > Hi Aaron. > > Thanks for the quick reply. I think I understand the printing behavior a lot > better now, and why it's that way. > > The one thing I would suggest is adding a list of the printing methods to > the docs there. As far as I can t

Re: [sympy] sympy.printing ignores __repr__ and __str__

2012-02-12 Thread Casey W. Stark
Looks great. Thanks! Best, Casey On Sat, Feb 11, 2012 at 8:47 PM, Aaron Meurer wrote: > On Fri, Feb 10, 2012 at 4:03 PM, Casey W. Stark > wrote: > > Hi Aaron. > > > > Thanks for the quick reply. I think I understand the printing behavior a > lot > > better now, and why it's that way. > > > >