[Numpy-discussion] Allowing slices as arguments for ndarray.take

2014-01-16 Thread Stephan Hoyer
There was a discussion last year about slicing along specified axes in numpy arrays: http://mail.scipy.org/pipermail/numpy-discussion/2012-April/061632.html I'm finding that slicing along specified axes is a common task for me when writing code to manipulate N-D arrays. The method ndarray.take ba

Re: [Numpy-discussion] using loadtxt to load a text file in to a numpy array

2014-01-16 Thread Chris Barker
On Thu, Jan 16, 2014 at 2:43 AM, Oscar Benjamin wrote: > > My proposal: > > > > loadtxt accepts an encoding argument. > > > > default is ascii -- that's what it's doing now, anyway, yes? > > No it's loading the file reading a line, encoding the line with latin-1, > and > then putting the repr of t

Re: [Numpy-discussion] using loadtxt to load a text file in to a numpy array

2014-01-16 Thread Oscar Benjamin
On Wed, Jan 15, 2014 at 11:40:58AM -0800, Chris Barker wrote: > On Wed, Jan 15, 2014 at 9:57 AM, Charles R Harris > wrote: > > > > There was a discussion of this long ago and UCS-4 was chosen as the numpy > > standard. There are just too many complications that arise in supporting > > both. > >