Re: [Numpy-discussion] interpretation of the draft governance document (was Re: Governance model request)

2015-09-24 Thread Nathaniel Smith
On Thu, Sep 24, 2015 at 12:22 AM, Nathaniel Smith wrote: > So it sounds like that page is basically unfixable, and if it's > misleading then we should just delete it from the doc. We definitely > don't want to diminish anyone's contributions! I just posted a pull request version

Re: [Numpy-discussion] interpretation of the draft governance document (was Re: Governance model request)

2015-09-24 Thread Sebastian Berg
On Do, 2015-09-24 at 00:22 -0700, Nathaniel Smith wrote: > On Wed, Sep 23, 2015 at 3:12 PM, Travis Oliphant wrote: > >> > >> Here is a list of the current Contributors to the main NumPy repository: > >> > >> To become eligible to join the Steering Council, an individual must

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Sebastian Berg
On Do, 2015-09-24 at 03:26 -0700, Stefan van der Walt wrote: > On 2015-09-24 00:17:33, Jens Jørgen Mortensen wrote: > > jensj@jordan:~$ python > > Python 2.7.9 (default, Apr 2 2015, 15:33:21) > > [GCC 4.9.2] on linux2 > > Type "help", "copyright", "credits" or "license" for

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Sebastian Berg
On Do, 2015-09-24 at 03:26 -0700, Stefan van der Walt wrote: > On 2015-09-24 00:17:33, Jens Jørgen Mortensen wrote: > > jensj@jordan:~$ python > > Python 2.7.9 (default, Apr 2 2015, 15:33:21) > > [GCC 4.9.2] on linux2 > > Type "help", "copyright", "credits" or "license" for

Re: [Numpy-discussion] draft NEP for breaking ufunc ABI in a controlled way

2015-09-24 Thread Antoine Pitrou
On Thu, 24 Sep 2015 00:20:23 -0700 Nathaniel Smith wrote: > > int PyUFunc_Identity(PyFuncObject *) > > > > Replaces ufunc->identity. > > Hmm, I can imagine cases where we might want to change how this works. > (E.g. if np.dot were a ufunc then the existing identity settings >

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Christophe Bal
Hello. Can you give an example where GOTO is useful ? Le 24 sept. 2015 07:24, "Charles R Harris" a écrit : > At last, goto for python ! > > Usage: > > from goto import with_goto > > @with_goto > def range(start, stop): > i =

Re: [Numpy-discussion] composition of the steering council (was Re: Governance model request)

2015-09-24 Thread Sebastian Berg
On Mi, 2015-09-23 at 17:08 -0600, Charles R Harris wrote: > > > On Wed, Sep 23, 2015 at 3:21 PM, Travis Oliphant > wrote: > > > Regarding the seed council, I just tried to pick an > objective >

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Daπid
On 24 September 2015 at 09:17, Jens Jørgen Mortensen wrote: > > >>> np.vdot(a[:, :, 0], b[:, :, 0]).real > 84.0 > >>> np.__version__ > '1.10.0rc1' > > The result should be 42. This is on Ubuntu 15.04. I can reproduce on Fedora with Numpy linked against Openblas. Numpy 1.9

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Stefan van der Walt
On 2015-09-24 00:17:33, Jens Jørgen Mortensen wrote: > jensj@jordan:~$ python > Python 2.7.9 (default, Apr 2 2015, 15:33:21) > [GCC 4.9.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import numpy as np > >>> a = np.zeros((2, 2,

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Sebastian Berg
On Do, 2015-09-24 at 13:14 +0200, Sebastian Berg wrote: > On Do, 2015-09-24 at 03:26 -0700, Stefan van der Walt wrote: > > On 2015-09-24 00:17:33, Jens Jørgen Mortensen wrote: > > > jensj@jordan:~$ python > > > Python 2.7.9 (default, Apr 2 2015, 15:33:21) > > > [GCC 4.9.2] on

Re: [Numpy-discussion] Problem while writing array with np.savetxt

2015-09-24 Thread Eric Firing
On 2015/09/23 9:17 PM, Andrew Nelson wrote: Dear list, whilst trying to write an array to disk I am coming across the following. What am I doing wrong? Surely f is a file handle? (python 3.4.3, numpy 1.9.2) import numpy as np a = np.arange(10.) with open('test.dat', 'w') as f:

Re: [Numpy-discussion] draft NEP for breaking ufunc ABI in a controlled way

2015-09-24 Thread Nathaniel Smith
On Tue, Sep 22, 2015 at 7:57 AM, Antoine Pitrou wrote: > > Hi, > > This e-mail is an attempt at proposing an API to solve Numba's needs. Thanks! > Attribute access > > > int PyUFunc_Nin(PyUFuncObject *) > > Replaces ufunc->nin. > > int

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Jens Jørgen Mortensen
On 09/23/2015 06:07 AM, Nathaniel Smith wrote: On Tue, Sep 22, 2015 at 8:12 PM, Charles R Harris wrote: Hi all, I'm pleased to announce the availability of Numpy 1.10.0rc1. Sources and 32 bit binary packages for Windows may be found at Sourceforge. Please test this

Re: [Numpy-discussion] Problem while writing array with np.savetxt

2015-09-24 Thread Julian Taylor
numpy text io is fundamentally broken in python3, there are sometimes workarounds, but currently its probably best to stick to python2 or not use it. The workarounds usually just make actually fixing the functions harder. On 09/24/2015 09:24 AM, Eric Firing wrote: > On 2015/09/23 9:17 PM, Andrew

Re: [Numpy-discussion] interpretation of the draft governance document (was Re: Governance model request)

2015-09-24 Thread Robert Kern
On Wed, Sep 23, 2015 at 11:12 PM, Travis Oliphant wrote: >> [We also have to decide on the initial membership for the Council. While the above text makes pains to distinguish between "committer" and "Council Member", in the past we've pretty much treated them as the same. So

[Numpy-discussion] Problem while writing array with np.savetxt

2015-09-24 Thread Andrew Nelson
Dear list, whilst trying to write an array to disk I am coming across the following. What am I doing wrong? Surely f is a file handle? (python 3.4.3, numpy 1.9.2) import numpy as np a = np.arange(10.) with open('test.dat', 'w') as f: np.savetxt(f, a)

Re: [Numpy-discussion] interpretation of the draft governance document (was Re: Governance model request)

2015-09-24 Thread Nathaniel Smith
On Wed, Sep 23, 2015 at 3:12 PM, Travis Oliphant wrote: >> >> Here is a list of the current Contributors to the main NumPy repository: >> >> >> [https://github.com/numpy/numpy/graphs/contributors](https://github.com/numpy/numpy/graphs/contributors) >> > > One of the problems

Re: [Numpy-discussion] ANN: numtraits v0.2

2015-09-24 Thread Thomas Robitaille
Hi Sylvain, Sylvain Corlay wrote: > Hi Thomas, > > This is great news! > > FYI, the traitlets module has been undergoing significant refactoring > lately, improving the API to favor a broader usage in the community. > One reason for this is that several projects outside of the Jupyter >

Re: [Numpy-discussion] interpretation of the draft governance document (was Re: Governance model request)

2015-09-24 Thread Sebastian Berg
On Do, 2015-09-24 at 10:45 +0200, Sebastian Berg wrote: > On Do, 2015-09-24 at 00:22 -0700, Nathaniel Smith wrote: > > On Wed, Sep 23, 2015 at 3:12 PM, Travis Oliphant > > wrote: > > >> > > >> Here is a list of the current Contributors to the main NumPy repository: > > > >>

Re: [Numpy-discussion] "Become an Open Source Contributor" workshop

2015-09-24 Thread Scott Collis
Hey Jamie, List, Having just come back from a conference where our toolkit, Py-ART [1] has picked up a nice following of people keen to contribute I was wondering if you will be opening this up via a google hangout or similar? I would love to advertise this to our users. We all want more

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread R Schumacher
An older non-decorator implementation, with examples (slower) http://entrian.com/goto/ At 04:25 AM 9/24/2015, you wrote: Hello. Can you give an example where GOTO is useful ? Le 24 sept. 2015 07:24, "Charles R Harris" <charlesr.har...@gmail.com> a écritÂ

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Christophe Bal
To be honest, I am not very conviced. Does someone can give a pseudo example ? Le 24 sept. 2015 20:50, "Benjamin Root" a écrit : > Most of the time when I wanted to use goto in my early days, I found that > breaks and continues were better and easier to understand. I will

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Charles R Harris
On Thu, Sep 24, 2015 at 12:57 PM, Christophe Bal wrote: > By pseudo example, I mean pseudo code. > I find Cleve Moler's old Fortran version of Brent's zero finding algorithm using gotos clearer than the structured versions you can find in Numerical Recipes. The operation of

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Sebastian Berg
On Do, 2015-09-24 at 10:03 -0700, Nathaniel Smith wrote: > On Sep 24, 2015 4:14 AM, "Sebastian Berg" > wrote: > > > > On Do, 2015-09-24 at 03:26 -0700, Stefan van der Walt wrote: > > > On 2015-09-24 00:17:33, Jens Jørgen Mortensen > wrote: > > > >

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Charles R Harris
On Thu, Sep 24, 2015 at 12:13 PM, Yarko Tymciurak wrote: > > > On Thu, Sep 24, 2015 at 12:54 PM, Alexander Eberspächer < > alex.eberspaec...@gmail.com> wrote: > >> On 24.09.2015 13:25, Christophe Bal wrote: >> >> > Can you give an example where GOTO is useful ? >> >> I think

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Christophe Bal
By pseudo example, I mean pseudo code. Le 24 sept. 2015 20:56, "Christophe Bal" a écrit : > To be honest, I am not very conviced. Does someone can give a pseudo > example ? > Le 24 sept. 2015 20:50, "Benjamin Root" a écrit : > >> Most of the time when

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Yarko Tymciurak
On Thu, Sep 24, 2015 at 12:54 PM, Alexander Eberspächer < alex.eberspaec...@gmail.com> wrote: > On 24.09.2015 13:25, Christophe Bal wrote: > > > Can you give an example where GOTO is useful ? > > I think those pieces of code are best understood with some humour.. > > However, basically I can

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Jason Newton
In my experience, it's also come up with finite-state-machines where there's lots of loops. You might consider something like a long-lived client-loop on some socket, where states like try-connect, connected, and while-connected-and-everythings-ok exist and each can have it's own never ending

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Alexander Eberspächer
On 24.09.2015 13:25, Christophe Bal wrote: > Can you give an example where GOTO is useful ? I think those pieces of code are best understood with some humour.. However, basically I can think two main causes for using goto: 1. Stop whatever your code is doing and jump towards the end of the

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Benjamin Root
Most of the time when I wanted to use goto in my early days, I found that breaks and continues were better and easier to understand. I will admit that there are occasional nested if/elif/else code that get messy without a goto. But which smells worse? A "goto" package or a complex if/elif/else?

Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Nathaniel Smith
On Sep 24, 2015 4:14 AM, "Sebastian Berg" wrote: > > On Do, 2015-09-24 at 03:26 -0700, Stefan van der Walt wrote: > > On 2015-09-24 00:17:33, Jens Jørgen Mortensen wrote: > > > jensj@jordan:~$ python > > > Python 2.7.9 (default, Apr 2 2015,

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Alexander Eberspächer
On 24.09.2015 21:12, Charles R Harris wrote: > I find Cleve Moler's old Fortran version of Brent's zero finding > algorithm using gotos clearer than the structured versions you can find > in Numerical Recipes. The operation of the algorithm is easiest to > describe as a finite state machine. I

Re: [Numpy-discussion] composition of the steering council (was Re: Governance model request)

2015-09-24 Thread David Cournapeau
On Thu, Sep 24, 2015 at 10:45 AM, Sebastian Berg wrote: > On Mi, 2015-09-23 at 17:08 -0600, Charles R Harris wrote: > > > > > > On Wed, Sep 23, 2015 at 3:21 PM, Travis Oliphant > > wrote: > > > > > > Regarding the seed council, I

Re: [Numpy-discussion] composition of the steering council (was Re: Governance model request)

2015-09-24 Thread Travis Oliphant
> > > > [1] Sorry to "footnote" this, but I think I am probably rudely repeating > myself and frankly do **not want this to be discussed**. It is just to > try to be fully clear where I come from: > Until SciPy 2015, I could list many people on this list who have shown > more direct involvement in