Re: [Numpy-discussion] Comparison changes

2014-01-25 Thread Stéfan van der Walt
On Sat, 25 Jan 2014 01:05:15 +0100, Sebastian Berg wrote: > 1. Comparison with None will broadcast in the future, so that `arr == > None` will actually compare all elements to None. (A FutureWarning for > now) This is a very useful change in behavior--thanks! Stéfan _

Re: [Numpy-discussion] Comparison changes

2014-01-25 Thread Sebastian Berg
On Sat, 2014-01-25 at 00:18 +, Nathaniel Smith wrote: > On 25 Jan 2014 00:05, "Sebastian Berg" > wrote: > > > > Hi all, > > > > in https://github.com/numpy/numpy/pull/3514 I proposed some changes > to > > the comparison operators. This includes: > > > > 1. Comparison with None will broadcast i

Re: [Numpy-discussion] Comparison changes

2014-01-24 Thread Nathaniel Smith
On 25 Jan 2014 00:05, "Sebastian Berg" wrote: > > Hi all, > > in https://github.com/numpy/numpy/pull/3514 I proposed some changes to > the comparison operators. This includes: > > 1. Comparison with None will broadcast in the future, so that `arr == > None` will actually compare all elements to No

[Numpy-discussion] Comparison changes

2014-01-24 Thread Sebastian Berg
Hi all, in https://github.com/numpy/numpy/pull/3514 I proposed some changes to the comparison operators. This includes: 1. Comparison with None will broadcast in the future, so that `arr == None` will actually compare all elements to None. (A FutureWarning for now) 2. I added that == and != will