From: Francesc A. <fa...@ca...> - 2006-08-26 07:20:51
|
Hi, A Dissabte 26 Agost 2006 01:55, Robert Kern va escriure: > Travis Oliphant wrote: > > I've come up with adding the functions (not methods at this point) > > > > deletefrom > > insertinto > > > > appendto (syntatic sugar for concatenate but with a separate argument > > for the array and the extra stuff) --- is this needed? > > > > These functions will operate along a particular axis (default is axis= =3D0 > > to match concatenate). > > > > Comments? > > I would drop appendto(). I also recommend leaving them as functions and n= ot > making methods from them. This will help prevent people from thinking that > these modify the arrays in-place. But there are already quite a few methods in NumPy that doesn't modify the= =20 array in-place (swapaxes, flatten, ravel or squeeze, but I guess many more). I'm personally an addict to encapsulate as much functionality as possible i= n=20 methods (but perhaps I'm biased by an insane use of TAB in ipython console). Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |