[Numpy-discussion] Fixing/implementing value based Casting

2020-12-09 Thread Sebastian Berg
Hi all, Sorry that this will again be a bit complicated again :(. In brief: * I would like to pass around scalars in some (partially new) C-API to implement value-based promotion. * There are some subtle commutativity issues with promotion. Commutativity may change in that case (with respect

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-09 Thread Sebastian Berg
On Mon, 2020-12-07 at 14:18 -0700, Aaron Meurer wrote: > Regarding np.bool specifically, if you want to deprecate this, you > might want to discuss this with us at the array API standard > https://github.com/data-apis/array-api (which is currently in RFC > stage). The spec uses bool as the name for

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-09 Thread Aaron Meurer
On Wed, Dec 9, 2020 at 9:41 AM Sebastian Berg wrote: > > On Mon, 2020-12-07 at 14:18 -0700, Aaron Meurer wrote: > > Regarding np.bool specifically, if you want to deprecate this, you > > might want to discuss this with us at the array API standard > > https://github.com/data-apis/array-api (which

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-09 Thread Robert Kern
On Wed, Dec 9, 2020 at 4:08 PM Aaron Meurer wrote: > On Wed, Dec 9, 2020 at 9:41 AM Sebastian Berg > wrote: > > > > On Mon, 2020-12-07 at 14:18 -0700, Aaron Meurer wrote: > > > Regarding np.bool specifically, if you want to deprecate this, you > > > might want to discuss this with us at the arra

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-09 Thread Stephan Hoyer
On Wed, Dec 9, 2020 at 1:07 PM Aaron Meurer wrote: > On Wed, Dec 9, 2020 at 9:41 AM Sebastian Berg > wrote: > > > > On Mon, 2020-12-07 at 14:18 -0700, Aaron Meurer wrote: > > > Regarding np.bool specifically, if you want to deprecate this, you > > > might want to discuss this with us at the arra

[Numpy-discussion] Feature request: Alternative representation for arrays with many dimensions

2020-12-09 Thread Fang Zhang
By default, the __repr__ and __str__ functions of NumPy arrays summarize long arrays (i.e. omit all items but a few at beginning and end of each dimension), which is a good thing because when debugging, programmers can call print() on arrays with millions of elements without clogging the output or

Re: [Numpy-discussion] Feature request: Alternative representation for arrays with many dimensions

2020-12-09 Thread Stephan Hoyer
On Wed, Dec 9, 2020 at 2:24 PM Fang Zhang wrote: > By default, the __repr__ and __str__ functions of NumPy arrays summarize > long arrays (i.e. omit all items but a few at beginning and end of each > dimension), which is a good thing because when debugging, programmers can > call print() on array

[Numpy-discussion] Inclusion of licenses

2020-12-09 Thread Charles R Harris
Hi All, Currently we append appropriate platform licenses to the LICENSE.txt file when building wheels for release. This means that there are uncommitted changes which shows up in the versioneer version as 'dirty', see the nightly files. This is unfortunate, but accurate :) There are at least two

Re: [Numpy-discussion] Inclusion of licenses

2020-12-09 Thread Charles R Harris
On Wed, Dec 9, 2020 at 5:17 PM Charles R Harris wrote: > Hi All, > > Currently we append appropriate platform licenses to the LICENSE.txt file > when building wheels for release. This means that there are > uncommitted changes which shows up in the versioneer version as 'dirty', > see the nightl