Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Matthew Brett
Hi, On Tue, Mar 15, 2011 at 5:55 PM, Matthew Brett wrote: > Hi, > > On Tue, Mar 15, 2011 at 5:30 PM, Christoph Gohlke wrote: >> >> >> On 3/15/2011 5:13 PM, Matthew Brett wrote: >>> Hi, >>> >>> On Tue, Mar 15, 2011 at 10:23 AM, Matthew Brett   >>> wrote: Hi, On Tue, Mar 15, 2011 at

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Matthew Brett
Hi, On Tue, Mar 15, 2011 at 5:30 PM, Christoph Gohlke wrote: > > > On 3/15/2011 5:13 PM, Matthew Brett wrote: >> Hi, >> >> On Tue, Mar 15, 2011 at 10:23 AM, Matthew Brett   >> wrote: >>> Hi, >>> >>> On Tue, Mar 15, 2011 at 10:12 AM, Pauli Virtanen  wrote: Tue, 15 Mar 2011 10:06:09 -0700, Mat

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Christoph Gohlke
On 3/15/2011 5:13 PM, Matthew Brett wrote: > Hi, > > On Tue, Mar 15, 2011 at 10:23 AM, Matthew Brett > wrote: >> Hi, >> >> On Tue, Mar 15, 2011 at 10:12 AM, Pauli Virtanen wrote: >>> Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: Sorry to ask, and I ask partly because I'm in the mi

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Matthew Brett
Hi, On Tue, Mar 15, 2011 at 10:23 AM, Matthew Brett wrote: > Hi, > > On Tue, Mar 15, 2011 at 10:12 AM, Pauli Virtanen wrote: >> Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: >>> Sorry to ask, and I ask partly because I'm in the middle of a py3k port, >>> but is this the right fix to this

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Christoph Gohlke
On 3/15/2011 11:34 AM, Christoph Gohlke wrote: > > > On 3/15/2011 10:12 AM, Pauli Virtanen wrote: >> Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: >>> Sorry to ask, and I ask partly because I'm in the middle of a py3k port, >>> but is this the right fix to this problem? I was confused by

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Christoph Gohlke
On 3/15/2011 10:12 AM, Pauli Virtanen wrote: > Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: >> Sorry to ask, and I ask partly because I'm in the middle of a py3k port, >> but is this the right fix to this problem? I was confused by the >> presence of the old PyString_AsString function.

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Matthew Brett
Hi, On Tue, Mar 15, 2011 at 11:07 AM, Pauli Virtanen wrote: > Tue, 15 Mar 2011 10:23:35 -0700, Matthew Brett wrote: > [clip] >> OK - I realize I'm being very lazy here but, do you mean: >> >>         PyErr_Format(PyExc_ValueError,                      "field named %s not found.",      

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Pauli Virtanen
Tue, 15 Mar 2011 10:23:35 -0700, Matthew Brett wrote: [clip] > OK - I realize I'm being very lazy here but, do you mean: > > PyErr_Format(PyExc_ValueError, >>> "field named %s not found.", >>> PyString_AsString(PyObject_Repr(index))); > >> The PyS

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Charles R Harris
On Tue, Mar 15, 2011 at 11:12 AM, Pauli Virtanen wrote: > Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: > > Sorry to ask, and I ask partly because I'm in the middle of a py3k port, > > but is this the right fix to this problem? I was confused by the > > presence of the old PyString_AsStr

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Matthew Brett
Hi, On Tue, Mar 15, 2011 at 10:12 AM, Pauli Virtanen wrote: > Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: >> Sorry to ask, and I ask partly because I'm in the middle of a py3k port, >> but is this the right fix to this problem?  I was confused by the >> presence of the old PyString_AsSt

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Pauli Virtanen
Tue, 15 Mar 2011 10:06:09 -0700, Matthew Brett wrote: > Sorry to ask, and I ask partly because I'm in the middle of a py3k port, > but is this the right fix to this problem? I was confused by the > presence of the old PyString_AsString function. It's not a correct fix. The original code seems als

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-15 Thread Matthew Brett
Hi, On Sun, Mar 13, 2011 at 12:07 PM, Matthew Brett wrote: > Hi, > > On Sun, Mar 13, 2011 at 11:51 AM, Christoph Gohlke wrote: >> >> >> On 3/13/2011 11:29 AM, Matthew Brett wrote: >>> >>> Hi >>> >>> On Sun, Mar 13, 2011 at 9:54 AM, Christoph Gohlke  wrote: On 3/13/2011 1:57 AM, Matthew

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-13 Thread Charles R Harris
On Sun, Mar 13, 2011 at 12:51 PM, Christoph Gohlke wrote: > > > On 3/13/2011 11:29 AM, Matthew Brett wrote: > > Hi > > > > On Sun, Mar 13, 2011 at 9:54 AM, Christoph Gohlke > wrote: > >> On 3/13/2011 1:57 AM, Matthew Brett wrote: > >>> Hi, > >>> I have this on my OSX 10.6 system and numpy 1.5.1

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-13 Thread Matthew Brett
Hi, On Sun, Mar 13, 2011 at 11:51 AM, Christoph Gohlke wrote: > > > On 3/13/2011 11:29 AM, Matthew Brett wrote: >> >> Hi >> >> On Sun, Mar 13, 2011 at 9:54 AM, Christoph Gohlke  wrote: >>> >>> On 3/13/2011 1:57 AM, Matthew Brett wrote: Hi, I have this on my OSX 10.6 system and nump

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-13 Thread Christoph Gohlke
On 3/13/2011 11:29 AM, Matthew Brett wrote: > Hi > > On Sun, Mar 13, 2011 at 9:54 AM, Christoph Gohlke wrote: >> On 3/13/2011 1:57 AM, Matthew Brett wrote: >>> Hi, >>> I have this on my OSX 10.6 system and numpy 1.5.1 and current numpy >>> head (30ee1d352): >>> >>> $ python3.2 >>> Python 3.2 (r3

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-13 Thread Matthew Brett
Hi On Sun, Mar 13, 2011 at 9:54 AM, Christoph Gohlke wrote: > On 3/13/2011 1:57 AM, Matthew Brett wrote: >> Hi, >> I have this on my OSX 10.6 system and numpy 1.5.1 and current numpy >> head (30ee1d352): >> >> $ python3.2 >> Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) >> [GCC 4.2.1 (Apple Inc.

Re: [Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-13 Thread Christoph Gohlke
On 3/13/2011 1:57 AM, Matthew Brett wrote: > Hi, > > I have this on my OSX 10.6 system and numpy 1.5.1 and current numpy > head (30ee1d352): > > $ python3.2 > Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin > Type "help", "copyright", "credits" or "li

[Numpy-discussion] Segfault with python 3.2 structured array non-existent field

2011-03-13 Thread Matthew Brett
Hi, I have this on my OSX 10.6 system and numpy 1.5.1 and current numpy head (30ee1d352): $ python3.2 Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> a = n