Re: [Numpy-discussion] constructing record dtypes from the c-api

2015-07-24 Thread Jason Newton
After drilling through the sources a second time, I found it was numpy/core/src/multiarray/descriptor.c was the file to consult with the primary routine being PyArray_DescrConverter and _convert_from_* functions being the most interesting to read and glean the capabilities of this with. So in part

[Numpy-discussion] ANN: Scipy 0.16.0 release

2015-07-24 Thread Ralf Gommers
Hi all, On behalf of the Scipy development team I'm pleased to announce the availability of Scipy 0.16.0. This release contains some exciting new features (see release notes below) and more than half a years' worth of maintenance work. 93 people contributed to this release. This release requires

Re: [Numpy-discussion] Proposal: Deprecate np.int, np.float, etc.?

2015-07-24 Thread Chris Barker
On Fri, Jul 24, 2015 at 10:03 AM, Sturla Molden wrote: > > I don't see the issue. They are just aliases so how is np.float worse > > than just float? > > I have burned my fingers on it. > I must have too -- but I don't recall, because I am VERY careful about not using np.float, no.int, etc... bu

Re: [Numpy-discussion] Proposal: Deprecate np.int, np.float, etc.?

2015-07-24 Thread Sturla Molden
Julian Taylor wrote: > I don't see the issue. They are just aliases so how is np.float worse > than just float? I have burned my fingers on it. Since np.double is a C double I assumed np.float is a C float. It is not. np.int has the same problem by being a C long. Pure evil. Most users of Num

Re: [Numpy-discussion] Proposal: Deprecate np.int, np.float, etc.?

2015-07-24 Thread Julian Taylor
On 07/23/2015 04:29 AM, Nathaniel Smith wrote: > Hi all, > > So one of the things exposed in the numpy namespace are objects called >np.int >np.float >np.bool > etc. > > These are commonly used -- in fact, just yesterday on another project > I saw a senior person reviewing a pull reques

Re: [Numpy-discussion] difference between dtypes

2015-07-24 Thread Robert Kern
On Fri, Jul 24, 2015 at 10:05 AM, wrote: > > On Fri, Jul 24, 2015 at 3:46 AM, Robert Kern wrote: >> >> On Wed, Jul 22, 2015 at 7:45 PM, wrote: >> > >> > Is there an explanation somewhere of what different basic dtypes mean, across platforms and python versions? >> > >> > >>> np.bool8 >> > >> >

Re: [Numpy-discussion] difference between dtypes

2015-07-24 Thread josef.pktd
On Fri, Jul 24, 2015 at 3:46 AM, Robert Kern wrote: > On Wed, Jul 22, 2015 at 7:45 PM, wrote: > > > > Is there an explanation somewhere of what different basic dtypes mean, > across platforms and python versions? > > > > >>> np.bool8 > > > > >>> np.bool_ > > > > >>> bool > > > > > > > > Are t

Re: [Numpy-discussion] difference between dtypes

2015-07-24 Thread Robert Kern
On Wed, Jul 22, 2015 at 7:45 PM, wrote: > > Is there an explanation somewhere of what different basic dtypes mean, across platforms and python versions? > > >>> np.bool8 > > >>> np.bool_ > > >>> bool > > > > Are there any rules and recommendations or is it all folks lore? This may help a littl