[Numpy-discussion] function name as parameter

Robert Kern robert.kern@gmail....
Wed Oct 20 17:10:02 CDT 2010

On Wed, Oct 20, 2010 at 16:49, Zachary Pincus <zachary.pincus@yale.edu> wrote:

> But why not have the user just pass in the relevant optObject from the
> pyOpt namespace (or some restricted namespace that just has the
> relevant functions exposed)? E.g.
> my_analysis.perform(optimizer=pyOpt.Amoeba)
> rather than
> my_analysis.perform(optimizer='Amoeba')


> This lets users do introspection on the pyOpt namespace to see what
> functions they can choose from, which is rather friendlier in an
> interactive environment.

Or implement their own without having to modify pyOpt.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the NumPy-Discussion mailing list