Le jeudi 11 novembre 2010 à 12:08 -0800, Ondrej Certik a écrit :
> On Thu, Nov 11, 2010 at 11:59 AM, Ronan Lamy <[email protected]> wrote:
> > Hi all,
> >
> > Running 'python bin/sympy_time.py', I realised that importing sympy
> > pulls in a lot of stuff that are irrelevant to an end user, like pdb,
> > doctest or py.test. Fixing this simply requires removing the imports of
> > runtests and pytest from sympy/utilities/__init.py and importing those
> > modules explicitly where they are required.
> 
> This should be done.

https://github.com/sympy/sympy/pull/30


> >
> > What do you think?
> 
> I think that the main "sympy" module should provide some reasonable
> set of tools, right away. Maybe we can remove some things from the
> global namespace into modules.
> 
+1

> For specialized things, one should import things explicitly. For
> example the physics quantum code needs to be imported from
> sympy.physics.hydrogen and so on.
> 
> Ondrej
> 
There a few rather self-contained subpackages that shouldn't be
imported, then. These are physics, geometry and galgebra. It seems more
difficult to compartmentise all the mathematical stuff (e.g. N-theory
might seem to be an advanced and specialised topic but we certainly need
primality testing everywhere). 


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