#11762: More import cleanup
--------------------------------+-------------------------------------------
Reporter: robertwb | Owner: jason
Type: enhancement | Status: closed
Priority: major | Milestone: sage-4.8
Component: misc | Resolution: fixed
Keywords: | Work_issues:
Upstream: N/A | Reviewer: Maarten Derickx
Author: Robert Bradshaw | Merged: sage-4.8.alpha1
Dependencies: |
--------------------------------+-------------------------------------------
Comment(by mhansen):
Replying to [comment:5 jhpalmieri]:
> Would something like this also make sense, in some cases:
> {{{
> #!diff
> diff --git a/sage/algebras/all.py b/sage/algebras/all.py
> --- a/sage/algebras/all.py
> +++ b/sage/algebras/all.py
> @@ -29,7 +29,7 @@ from algebra_element import AlgebraEleme
> from free_algebra import FreeAlgebra, is_FreeAlgebra
> from free_algebra_quotient import FreeAlgebraQuotient
>
> -from steenrod.all import *
> +from steenrod import *
>
> from group_algebra_new import GroupAlgebra
> }}}
> and then just rename `sage/algebras/steenrod/all.py` to
`sage/algebras/steenrod/__init__.py`?
Also, for things like "sage.plot.plot" it could be confusing since if you
just did "sage.plot.plot" it would be referring to the function
(currently, "sage.plot.all.plot"). However, to import that function
directly, it'd be "from sage.plot.plot import plot" which would also be
the same as "from sage.plot import plot".
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11762#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.