On Thu, Nov 11, 2010 at 2:44 PM, Ondrej Certik <ond...@certik.cz> wrote:
> On Thu, Nov 11, 2010 at 1:08 PM, Aaron Meurer <asmeu...@gmail.com> wrote:
>> How difficult would it be to provide a model like Maple, where the
>> common functions are imported by default, but if you want more
>> advanced things you have to import the module?  The difficulty, the
>> common functions and more advanced ones might be in the same file.
>> So, for example, you might want to import dsolve() by default, but not
>> classify_ode() (similar to how dsolve() is imported by default in
>> Maple, but to use odeadvisor(), you have to do with(DETools)), but
>> both live in ode.py.  Does Python make it easy to do this sort of
>> thing, or at least has someone written something that makes it easy to
>> do?
>
> We need to experiment. I think we all agree that something like you
> describe is desirable to do.
>
> I think that basic "import sympy" should only import the core, plus
> some basic functions, and then limits, integrals, solve, dsolve. Maybe
> some more things.
>
> And the rest should simply by not imported at all, and the user has to
> import it by hand. That means, that dsolve() has to import the stuff
> from withing the function itself, so that it gets "lazy imported".

For example the special functions should *not* be imported by default,
as there will be tons of them. And one will just do:

from sympy.special import Ylm

and so on. That should be easy to do.

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@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