From: Robert K. <rob...@gm...> - 2006-06-30 16:53:31
|
Tim Hochberg wrote: > Regarding choice of float or int for default: > > The number one priority for numpy should be to unify the three disparate > Python numeric packages. Whatever choice of defaults facilitates that is > what I support. +10 > Personally, given no other constraints, I would probably just get rid of > the defaults all together and make the user choose. My preferred solution is to add class methods to the scalar types rather than screw up compatibility. In [1]: float64.ones(10) -- 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 |