datetime.date support in NumPyPy

Is there any estimate on when NumPyPy will support datetime.date objects in arrays? Regards, Antti Mäkinen

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.

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@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@python.org https://mail.python.org/mailman/listinfo/pypy-dev

On 22/05/15 10:07, Antti Mäkinen wrote:
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".
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev You will need a pypy from after the merge of the object-dtype2 branch (post-release-2.5.1), unfortunately we have no working macosx buildbots at the moment so you would have to translate it for yourself.
2.6.0 should be out in two weeks or so with the object dtype. Help with finding a functioning macosx buildbot would be appreciated Matti

Great news! I'll wait for the 2.6.0 release then :)
On 22 May 2015, at 13:26, Matti Picus <matti.picus@gmail.com> wrote:
On 22/05/15 10:07, Antti Mäkinen wrote:
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".
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev You will need a pypy from after the merge of the object-dtype2 branch (post-release-2.5.1), unfortunately we have no working macosx buildbots at the moment so you would have to translate it for yourself.
2.6.0 should be out in two weeks or so with the object dtype.
Help with finding a functioning macosx buildbot would be appreciated Matti _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
participants (4)
-
Antti Mäkinen
-
Antti Mäkinen
-
Matti Picus
-
Ronan Lamy