Hi Albert-Jan, On Thu, Jan 1, 2015 at 8:57 PM, Albert-Jan Roskam <[email protected]> wrote:
> Hi, > > I would like to use the numpy implementation for Pypy. In particular, I > would like to use numpy.fromiter, which is available according to this > overview: http://buildbot.pypy.org/numpy-status/latest.html. However, > contrary to what this website says, this function is not yet available. > Conclusion: the website is wrong. Or am I missing something? > No idea to be honest. Note that numpypy is developed by the PyPy team and not by the Numpy team. So you may want to ask on the PyPy mailing list: https://mail.python.org/mailman/listinfo/pypy-dev Cheers, Ralf > > albertjan@debian:~$ sudo pypy $(which pip) install -U git+ > https://bitbucket.org/pypy/numpy.git > albertjan@debian:~$ sudo pypy -c 'import numpy' # sudo: as per the > installation instructions > albertjan@debian:~$ pypy > Python 2.7.8 (f5dcc2477b97386c11e4b67f08a2d00fbd2fce5d, Sep 19 2014, > 10:37:41) > [PyPy 2.4.0 with GCC 4.8.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>> import sys > >>>> import numpy as np > >>>> np.__version__, sys.version > ('1.9.0', '2.7.8 (f5dcc2477b97386c11e4b67f08a2d00fbd2fce5d, Sep 19 2014, > 10:37:41)\n[PyPy 2.4.0 with GCC 4.8.2]') > >>>> np.fromiter > <function tmp at 0x00007fdc06e35bc8> > >>>> np.fromiter((i for i in range(10)), np.float) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/opt/pypy-2.4/site-packages/numpy/core/multiarray.py", line 55, in > tmp > raise NotImplementedError("%s not implemented yet" % func) > NotImplementedError: fromiter not implemented yet > > The same also applies to numpy.fromfile > > Thanks in advance and happy 2015. > > > > Regards, > > Albert-Jan > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > All right, but apart from the sanitation, the medicine, education, wine, > public order, irrigation, roads, a > > fresh water system, and public health, what have the Romans ever done for > us? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
