On Wed, May 13, 2020 at 5:34 PM David Bailey <[email protected]> wrote:
>
> On 13/05/2020 23:36, Jason Moore wrote:
>
> I had a look at the backwards incompatibilities.
>
> This one stood out:
>
> Submodule names are no longer imported with from sympy import *. They can 
> still be imported directly like from sympy import core or accessed like 
> sympy.core, or like sys.modules['sympy.simplify'] for modules that share 
> names with SymPy functions.
>
> Is this really necessary? On the face of it, I suspect this could cause a 
> fair amount of code in the wild to break. I'm not sure what breaking this 
> functionality gains, but it surely may cause down stream pain.
>
> I agree strongly with this comment.
>
> There needs to be a simple sway to load all the SymPy functionality - not 
> least because users may not know the exact name of a function they wish to 
> use, let alone what submodule it is located in! In addition, as Jason says, 
> this will break a great deal of code.

from sympy import * will still work to import all the public functions
and classes. Maybe the release notes are unclear about this. The
change here is that it will no longer include submodule objects, which
are not things that users should ever be using directly (if you want
to access something that isn't included in 'import *', you should
import it directly, like 'from sympy.stats import P').

If this change actually does break something for you please let us
know so we can see if it is something that we hadn't considered.

Aaron Meurer

>
> Not everyone who wishes to use SymPy is going to be familiar with Python.
>
> David
>
> --
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/7a0da02f-b984-b2cc-8bd1-93ad4aa0f687%40dbailey.co.uk.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6KhRqoxCbvwnyV4ceJq6WnTumv53YUGgvNkXeOUU9UqgQ%40mail.gmail.com.

Reply via email to