#3580: [with patch, needs review] ensure that numpy is not imported on startup.
--------------------+-------------------------------------------------------
Reporter: was | Owner: craigcitro
Type: defect | Status: assigned
Priority: major | Milestone: sage-3.2.1
Component: misc | Resolution:
Keywords: |
--------------------+-------------------------------------------------------
Comment (by mabshoff):
We already have a doctest that is supposed to catch this (via grepping for
numpy in "sage -startuptime"), but I think we should add a test in
$SAGE_ROOT/devel/sage/tests that looks for the import of numpy in "from
sage import all". Right now John's totally real code imports numpy, but
the doctest to detect a numpy import at the top level is broken.
What I would like to see is to not import numpy each time, but use
something like the mechanism in
http://trac.sagemath.org/sage_trac/attachment/ticket/3498/numpy-3.patch
The mechanism from that patch should be be stuck somewhere in the global
namespace and we should enforce its use, i.e. a patch reviewed seeing
something like a straight numpy import should complain.
Cheers,
Michael
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3580#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---