Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Gael Varoquaux
Another point in defence of vstack vs stack/concatenate: last time I looked, it was faster on smallish arrays. Gaël ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Matthias Bussonnier
'pip install ... will' to 'pip install ... should' especially for 2.7 users it's rarer to have an up to date enough pip (9+) to respect the requires_python metadata. A mention to the py3statement would be appreciated :-) especially if you decide to sign it. You might want to also be a bit more po

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Nathaniel Smith
Fortunately we can wait until we're a bit closer before we have to make any final decision on the version numbering :-) Right now though it would be good to start communicating to users/downstreams about whatever our plans our though, so they can make plans. Here's a first attempt at some text we

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Robert Kern
On Thu, Nov 9, 2017 at 2:49 PM, Allan Haldane wrote: > > On 11/09/2017 05:39 PM, Robert Kern wrote: > > On Thu, Nov 9, 2017 at 1:58 PM, Mark Bakker wrote: > > > >> Can anybody explain why vstack is going the way of the dodo? > >> Why are stack / concatenate better? What is 'bad' about vstack? > >

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Allan Haldane
On 11/09/2017 05:39 PM, Robert Kern wrote: > On Thu, Nov 9, 2017 at 1:58 PM, Mark Bakker wrote: > >> Can anybody explain why vstack is going the way of the dodo? >> Why are stack / concatenate better? What is 'bad' about vstack? > > As far as I can tell, the discussion happened all on Github, no

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Robert Kern
On Thu, Nov 9, 2017 at 1:58 PM, Mark Bakker wrote: > Can anybody explain why vstack is going the way of the dodo? > Why are stack / concatenate better? What is 'bad' about vstack? As far as I can tell, the discussion happened all on Github, not the mailing list. See here for references: https:/

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Stephan Hoyer
I'm pretty sure I wrote the offending line in the vstack() docs. The original motivation for stack() was that stacking behavior of hstack(), vstack() and dstack() was somewhat inconsistent, especially with regard to lower dimensional input. stack() is conceptually much simpler and more general. T

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Eric Wieser
I think the primary problems with it are: - A poor definition of “vertical” in the world of stacked matrices - in np.linalg land, this means axis=-2, but in vstack land, it means axis=0. - Mostly undocumented auto-2d behavior that doesn’t make you think well enough about dimensions. Nu

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Mark Bakker
> On 11/09/2017 04:30 AM, Joe wrote: > > Hello, > > > > I have a question and hope that you can help me. > > > > The doc for vstack mentions that "this function continues to be > > supported for backward compatibility, but you should prefer > > np.concatenate or np.stack." > > > > Using vstack was

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Marten van Kerkwijk
In astropy we had a similar discussion about version numbers, and decided to make 2.0 the LTS that still supports python 2.7 and 3.0 the first that does not. If we're discussing jumping a major number, we could do the same for numpy. (Admittedly, it made a bit more sense with the numbering scheme

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Bryan Van de ven
> On Nov 9, 2017, at 13:35, Charles R Harris wrote: > > One thing worth considering might be making the release that drops 2.7 NumPy > 2.0 just so that there is a clear break point. Then if someone wants to > continue the 1.x line of releases supporting 2.7 they can do so. ISTR that > git no

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Charles R Harris
On Thu, Nov 9, 2017 at 11:24 AM, Matthias Bussonnier < bussonniermatth...@gmail.com> wrote: > Hi all, > > Apologies if this mail appear out of thread I just subscribed to respond. > > > Yeah, agreed. I don't feel like this is incompatible with the spirit of > > python3statement.org, though looking

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Robert Kern
On Thu, Nov 9, 2017 at 1:30 AM, Joe wrote: > > Hello, > > I have a question and hope that you can help me. > > The doc for vstack mentions that "this function continues to be supported for backward compatibility, but you should prefer np.concatenate or np.stack." > > Using vstack was convenient be

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Matthias Bussonnier
Hi all, Apologies if this mail appear out of thread I just subscribed to respond. > Yeah, agreed. I don't feel like this is incompatible with the spirit of > python3statement.org, though looking at the text I can see how it's not clear. > My guess is they'd be happy to adjust the text, especially

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Nathaniel Smith
See Thomas's reply quoted below (it was rejected by the mailing list since he's not subscribed): On Nov 9, 2017 01:24, "Thomas Kluyver" wrote: On Thu, Nov 9, 2017, at 08:52 AM, Nathaniel Smith wrote: On Nov 8, 2017 23:59, "Ralf Gommers" wrote: Regarding http://www.python3statement.org/: I'd s

Re: [Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Allan Haldane
On 11/09/2017 04:30 AM, Joe wrote: > Hello, > > I have a question and hope that you can help me. > > The doc for vstack mentions that "this function continues to be > supported for backward compatibility, but you should prefer > np.concatenate or np.stack." > > Using vstack was convenient becaus

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Petr Viktorin
On 11/09/2017 12:15 AM, Nathaniel Smith wrote: On Nov 8, 2017 16:51, "Matthew Brett" > wrote: Hi, On Wed, Nov 8, 2017 at 7:08 PM, Julian Taylor mailto:jtaylor.deb...@googlemail.com>> wrote: > On 06.11.2017 11:10, Ralf Gommers wrote: >>

[Numpy-discussion] np.vstack vs. np.stack

2017-11-09 Thread Joe
Hello, I have a question and hope that you can help me. The doc for vstack mentions that "this function continues to be supported for backward compatibility, but you should prefer np.concatenate or np.stack." Using vstack was convenient because "the arrays must have the same shape along all

Re: [Numpy-discussion] Proposal of timeline for dropping Python 2.7 support

2017-11-09 Thread Nathaniel Smith
On Nov 8, 2017 23:59, "Ralf Gommers" wrote: Regarding http://www.python3statement.org/: I'd say that as long as there are people who want to spend their energy on the LTS release (contributors *and* enough maintainer power to review/merge/release), we should not actively prevent them from doing t