[pypy-issue] [issue1193] numpy ufuncs break if used in-place

Andrew Pendleton tracker at bugs.pypy.org
Mon Jun 25 22:43:30 CEST 2012


New submission from Andrew Pendleton <abpend at gmail.com>:

In numpy on CPython, ufuncs can be used in-place.  On pypy, they seem to break.  
Example:

import numpypy as numpy
arr = numpy.zeros(10)
numpy.maximum(arr, 1, arr)

This works fine on CPython, but mostly raises a recursion depth exception in 
pypy.  Within the request-response cycle of Django, I have also seen it trigger 
a complete crash of pypy, with "Bus error: 10" printed to the screen, but I 
can't reproduce this behavior outside of Django.

----------
messages: 4507
nosy: apendleton, pypy-issue
priority: bug
status: unread
title: numpy ufuncs break if used in-place

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


More information about the pypy-issue mailing list