[pypy-issue] [issue981] micronumpy 'fromnumeric' patch

mikefc tracker at bugs.pypy.org
Sat Jan 7 07:36:18 CET 2012


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

This is v2 of the fromnumeric patch. (2 extra files are coming after this)

This version
* puts docstrings & adapted code from numpy/core/fromnumeric.py into 
micronumpy/app_fromnumeric.py  
* puts tests into micronumpy/test/test_fromnumeric.py
* moves the functions mean(), reshape() and sum() from app_numpy to 
app_fromnumeric.py (since they seem to originate from here in numpy)

The reason we can't just copy fromnumeric from numpy without changes is that none 
of the current BaseArray call signatures match numpy (e.g. axis arguments).  
Although, once the call signatures start to match a little better, the fromnumeric 
from python should be able to be copied across with only minor changes.  

I know that this does not move things to the lib_pypy/numpy as fijal has proposed, 
but I'm going to need some help to do that if that's the way numpypy is going.

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


More information about the pypy-issue mailing list