Re: [Numpy-discussion] .max() and zero length arrays

2007-05-14 Thread Alexander Schmolck
Robert Kern [EMAIL PROTECTED] writes: If possible, I would prefer a way to pass a value to use and raise the error if no such value is passed rather than hardcode an identity value for min() and max(). What's wrong with inf? I'm not sure integer reductions should have max/min-ints as

Re: [Numpy-discussion] .max() and zero length arrays

2007-05-14 Thread Robert Kern
Alexander Schmolck wrote: Robert Kern [EMAIL PROTECTED] writes: If possible, I would prefer a way to pass a value to use and raise the error if no such value is passed rather than hardcode an identity value for min() and max(). What's wrong with inf? I'm not sure integer reductions

Re: [Numpy-discussion] .max() and zero length arrays

2007-05-14 Thread Alexander Schmolck
Robert Kern [EMAIL PROTECTED] writes: Alexander Schmolck wrote: Robert Kern [EMAIL PROTECTED] writes: If possible, I would prefer a way to pass a value to use and raise the error if no such value is passed rather than hardcode an identity value for min() and max(). What's wrong with

Re: [Numpy-discussion] .max() and zero length arrays

2007-05-14 Thread Robert Kern
Alexander Schmolck wrote: Robert Kern [EMAIL PROTECTED] writes: Alexander Schmolck wrote: Robert Kern [EMAIL PROTECTED] writes: If possible, I would prefer a way to pass a value to use and raise the error if no such value is passed rather than hardcode an identity value for min() and