[Numpy-discussion] min/max not exported in "from numpy import *"

Travis Oliphant oliphant.travis at ieee.org
Thu Jun 29 13:30:15 EDT 2006

Zhang Le wrote:
>> I'm going to take a wild-ass guess and suggest that was a concious decision
>> by the authors.  Shadowing builtins is generally a no-no.  You just need to
>> be explicit instead of implicit:
>>     from numpy import min, max
> I see. But why by default sum is exported? Is that a wise decision?
Well, Numeric had the sum function long before Python introduced one.  
NumPy adopted Numeric's sum function as well. 


More information about the NumPy-Discussion mailing list