[pypy-issue] [issue1589] numpy: Structured arrays give odd behavior
Isaac Freeman
tracker at bugs.pypy.org
Sun Sep 8 00:51:38 CEST 2013
Isaac Freeman <memotype at gmail.com> added the comment:
Just thought I'd try this out in the latest hg HEAD and it seems the string fill
segfault issue is fixed.
>>>> import numpypy
>>>> import numpy
>>>> a = numpy.empty((10,10), dtype='S1')
>>>> a.fill(' ')
>>>> a
array([[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']],
dtype='|S1')
However, still getting odd, unprintable characters with the original example.
Would you like me to open a separate bug for that or are you just tracking it here?
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1589>
________________________________________
More information about the pypy-issue
mailing list