From: Fernando P. <Fer...@co...> - 2005-01-10 19:49:20
|
Norbert Nemec wrote: > Am Montag, 10. Januar 2005 11:46 schrieb John Hunter: > >>I'm happy with Fernando's proposed names amin, amax, around, etc. If >>everyone else is too, I propose Andrew implement his patch, provide >>the compatibility names, and update the relevant docs to advertise >>this prominently: API_CHANGES, CHANGELOG, tutorial and users guide. >>Particularly in the latter two, I think we should warn people about >>the potential performance hit of using the builtin min, max and >>friends on large arrays. > > > There might be a solution that avoids the performance hit: there should not be > any problem with pylab offering an optimized set of min, max, etc. as long as > their signature is identical to the builtins and the behavior only extends > them. Something along the line of: Hmm. Those extra checks in your code don't come for free... I'd rather leave the builtins alone (many of them are C-coded, hence quite fast), and just provide array versions where needed. Just my 1e-2 Best, f |