2011/11/9 Ondřej Čertík <ondrej.cer...@gmail.com>:
> On Wed, Nov 9, 2011 at 10:58 AM, Aaron Meurer <asmeu...@gmail.com> wrote:
>> Right.  This is of course a lot of work to make all the SymPy
>> functions do type checking, but if you look at the traceback, it's
>> actually coming from Function.__new__.  So maybe we should just make
>> sure that the core functions do type checking.
>>
>> Or maybe we should add an option to sympify() that raises an exception
>> if the returned object is not Basic and have the core functions call
>> that (perhaps _sympify() should do this?).
>
> I think it's enough if high level functions like integrate() and
> diff() do type checking.
>
> Ondrej
>

Except then every single high level function has to do type checking.
On the other hand, if you do it in the core, the chances of it being
hit when a high level function is given the wrong type are pretty
high, and the code is simpler.

Aaron Meurer

-- 
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.

Reply via email to