June 29, 2006
10:30 a.m.
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. -Travis