On 10/31/07, Robert Bradshaw <[EMAIL PROTECTED]> wrote:
> > I can think of lots of "solutions", although I don't know which of
> > them might be worth the effort.
> >
> > 1) a global enable/disable
> > 2) hook into __import__ to notice imports of numpy, and turn off the
> > optimization globally if numpy is ever imported
> > 3) patch numpy to add the incref/decref operations
> > 4) patch numpy to turn off the optimization on entry to dangerous
> > functions, and turn the optimization back on at exit
>
> I like 1-2. Options 3 and 4 seem like lots of (error-prone) work on
> every numpy release. Numpy isn't imported by default, right?

Correct, it isn't (or at least it shouldn't be, since importing it is
slow).   However as soon as somebody uses matplotlib for
anything, or uses numerical matrices, it is very likely to get imported.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to