[pypy-dev] datetime.date support in NumPyPy

Antti Mäkinen antti.makinen at simosol.fi
Fri May 22 09:07:18 CEST 2015


Thanks for the answer! I don't know if I'm missing something, but initializing arrays with dtype=object seems to fail. I'm using PyPy 2.5.1 on OS X 10.10 and Numpy from the PyPy's Numpy fork. I'm assuming the "master [MAIN BRANCH]" is the same as the "default branch".

Initializing the arrays fails like this:

>>>> import numpy
>>>> numpy.zeros(2, dtype=object)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NotImplementedError: cannot create dtype with type 'object'

Numpy was installed like this:
git clone https://bitbucket.org/pypy/numpy.git;
cd numpy; pypy setup.py install



> On 22 May 2015, at 02:22, Ronan Lamy <ronan.lamy at gmail.com> wrote:
> 
> Le 21/05/15 09:40, Antti Mäkinen a écrit :
>> Is there any estimate on when NumPyPy will support datetime.date objects
>> in arrays?
> 
> Well, the object dtype is already supported in the default branch, so you can put datetime.date objects in arrays. If you were thinking of the np.datetime64 and np.timedelta64 dtypes, they aren't supported yet, and we're not planning on adding them in the immediate future unless there's a compelling use case.
> 
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> https://mail.python.org/mailman/listinfo/pypy-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150522/5145ee5d/attachment.html>


More information about the pypy-dev mailing list