[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>

More information about the pypy-issue mailing list