namespace issue, Python vs numpy min/max problem
tjreedy at udel.edu
Sat Nov 13 21:52:46 CET 2010
On 11/13/2010 2:41 PM, dmitrey wrote:
> hi all,
> I have the following problem:
> I have overloaded "max" function in my module (FuncDesigner); it works
> like following:
> if some data in arguments is of type "oofun" then my function works,
> elseware numpy.max() is used.
> Now the problem:
> suppose someone writes
> from FuncDesigner import *
Noone should do that unless your module is **explicitly** designed to be
*-imported and you docuement that so that they know it is OK.
Now you know why * import is generally discouraged ;-).
Terry Jan Reedy
More information about the Python-list