I have a fill dedent function in solvers.py that should go somewhere
else that is accessible (in core?) but I'm not sure where to put it.
Any ideas?

It allows error messages to be formatted nicely in the code:


            raise ValueError(_filldedent('''
                solve_linear only handles symbols, not %s. To isolate
                non-symbols use solve, e.g. >>> %s <<<.
                             ''' % (bad, eg)))

instead of


            raise ValueError('''solve_linear only handles symbols, not
%s. To isolate \
non-symbols use solve, e.g. >>> %s <<<.''' % (bad, eg)))

There are abot 30 places where such error messages are wrapped back to
the beginning of the line on the next line that could use this. The
nice thing, too, is that you don't have to worry about how long the
expression(s) are that get plugged into the message -- they will just
be wrapped to the present width.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to