[pypy-issue] [issue1589] numpy: Structured arrays give odd behavior

Isaac Freeman tracker at bugs.pypy.org
Sat Aug 24 08:58:29 CEST 2013


Isaac Freeman <memotype at gmail.com> added the comment:

In fact, the problem might just be with characters/strings in general? Not sure
if this is related, but:

$ ./pypy
Python 2.7.3 (83074dd846cf, Aug 22 2013, 22:00:27)
[PyPy 2.2.0-alpha0 with GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``exarkun: "the part that I thought
was going to be hard was trivial, so now I just have this part that I didn't
even think of that is hard"''
>>>> import numpypy
>>>> import numpy
>>>> a = numpy.empty((10,10), dtype='S1')
>>>> a.fill(' ')
[1]    3825 segmentation fault (core dumped)  ./pypy

$ ./pypy
Python 2.7.3 (83074dd846cf, Aug 22 2013, 22:00:27)
[PyPy 2.2.0-alpha0 with GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy 1.7 released''
>>>> import numpypy
>>>> import numpy
>>>> a = numpy.empty((10,10), dtype='c1')
>>>> a.fill(' ')
[1]    3840 segmentation fault (core dumped)  ./pypy

----------
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1589>
________________________________________


More information about the pypy-issue mailing list