Isaac Freeman <[email protected]> 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 <[email protected]>
<https://bugs.pypy.org/issue1589>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to