[Numpy-discussion] padding options for diff

2016-10-24 Thread Matthew Harrigan
I posted a pull request which adds optional padding kwargs "to_begin" and "to_end" to diff. Those options are based on what's available in ediff1d. It closes this issue

Re: [Numpy-discussion] padding options for diff

2016-10-24 Thread Stephan Hoyer
This looks like a welcome addition in functionality! It will be nice to be able to finally (soft) deprecate ediff1d. On Mon, Oct 24, 2016 at 5:44 AM, Matthew Harrigan < harrigan.matt...@gmail.com> wrote: > I posted a pull request which > adds optional pa

[Numpy-discussion] Numpy integers to integer powers again again

2016-10-24 Thread Charles R Harris
Hi All, I've been thinking about this some (a lot) more and have an alternate proposal for the behavior of the `**` operator - if both base and power are numpy/python scalar integers, convert to python integers and call the `**` operator. That would solve both the precision and compatibi

Re: [Numpy-discussion] Numpy integers to integer powers again again

2016-10-24 Thread Nathaniel Smith
On Mon, Oct 24, 2016 at 3:41 PM, Charles R Harris wrote: > Hi All, > > I've been thinking about this some (a lot) more and have an alternate > proposal for the behavior of the `**` operator > > if both base and power are numpy/python scalar integers, convert to python > integers and call the `**`