[sympy] beautify error messages

2012-04-19 Thread smichr
Inspired a bit by the SymPyDeprecationWarning, I am looking at how we might make it easier to write error message in the code. One of the headaches is handling longer error messages. method 1 - use string concatenation within parens; PRO simple CON: you have to remember to add a space at the beg/e

Re: [sympy] beautify error messages

2012-05-05 Thread krastanov.ste...@gmail.com
I know that I am a bit late in this discussion. Please excuse me for that. I dislike this type of modification of the warning and error systems. Presumably such beatifications should be done by the interpreter, not by the code that is interpreted (or something like printing hooks for error message

Re: [sympy] beautify error messages

2012-06-01 Thread Aaron Meurer
I agree. This is better suited for IPython. Otherwise, it's just going to be a constant race to use whatever method instead of just "raise Exception(...)". Also, if someone wants to catch a specific error by the message, it is probably easier if the message is all in one line by default (i.e., t