[pypy-issue] [issue959] numpypy array operation improperly jitted away

mikefc tracker at bugs.pypy.org
Mon Dec 12 12:13:59 CET 2011


mikefc <coolbutuseless at gmail.com> added the comment:

simplified the example a bit more.

=========================
import numpypy as numpy
import random

nch = 1; rows = 128; cols = 128
data = numpy.zeros([rows, cols, nch], dtype=numpy.int64)
for colour in xrange(2100):	
	row = random.randint(0,rows-1) 
	col = random.randint(0,cols-1) 
	data[row,col,:] = colour
	print colour, data[row,col,:], data[row,col,:]==colour

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


More information about the pypy-issue mailing list