|
From: John H. <jdh...@ac...> - 2005-01-19 22:45:27
|
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
Andrew> I've just committed a patch to stop "from pylab import *"
Andrew> from overriding Python builtin functions like min() and
Andrew> max().
Andrew> Spurred on by the potential of matplotlib included in the
Andrew> Enthought Edition of Python, I've gone ahead and added the
Andrew> following lines to pylab.py in CVS:
Andrew> import __builtin__ min = __builtin__.min max =
Andrew> __builtin__.max sum = __builtin__.sum round =
Andrew> __builtin__.round abs = __builtin__.abs
I thought we last left this with the idea that these changes would be
made in matplotlib.numerix level, and that the old symbols would still
be provided under the names amin, amax, aabs, etc..., and the existing
matplotlib code and examples would be ported to the new naming scheme.
Eg,
http://sourceforge.net/mailarchive/forum.php?thread_id=6323208&forum_id=36187
My fear is that if we do this in pylab but not numerix, confusion will
only deepen.
FYI, we have until late Thursday I think to get anything we want in
before the final enthon roll-up.
JDH
|