It typically should raise an error. You can do something like `raise
ValueError('Wrong input!')`.


Jason
moorepants.info
+01 530-601-9791

On Sun, Mar 15, 2015 at 6:38 AM, Jennifer White <jcrw...@googlemail.com>
wrote:

> Hi,
> I'm new to contributing to SymPy and I'm just starting with fixing some
> simple little TODOs in the code. I'm currently working on some checks that
> are needed for polynomials (things like checking certain values are
> integers). Before I went ahead and changed things I wanted to check: what
> is the preferred action of the code in the event where this condition
> fails? Should it just print out an error message? Return nothing from the
> current function? I just wondered what the standard handling of this was in
> SymPy.
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/a617808a-0cf2-4c84-87b9-122fa1bb04c6%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/a617808a-0cf2-4c84-87b9-122fa1bb04c6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAP7f1AjJJO0KQdvUkxePRuBMgN2FmOFviy6NRgz8LTyJ-PHqKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to