[pypy-issue] [issue966] world's smallest/most trivial micronumpy patch

mikefc tracker at bugs.pypy.org
Sun Dec 18 11:10:30 CET 2011


New submission from mikefc <coolbutuseless at gmail.com>:

In micronumpy/app_numpy.py, default hg branch.  I think the j+=1 line is 
superfluous.  (marked this as a performance bug, but it probably gets jitted 
away anyways).

Actual 'hg diff' file attached.
==================================
--- a/pypy/module/micronumpy/app_numpy.py	Mon Dec 05 18:11:57 2011 -0500
+++ b/pypy/module/micronumpy/app_numpy.py	Sun Dec 18 20:03:15 2011 +1000
@@ -33,6 +33,5 @@
     i = start
     for j in range(arr.size):
         arr[j] = i
-        j += 1
         i += step
     return arr

----------
messages: 3582
nosy: mikefc, pypy-issue
priority: performance bug
status: unread
title: world's smallest/most trivial micronumpy patch

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


More information about the pypy-issue mailing list