Author: Maciej Fijalkowski <[email protected]>
Branch: numpy-record-dtypes
Changeset: r52334:0901f6dc83de
Date: 2012-02-09 22:59 +0200
http://bitbucket.org/pypy/pypy/changeset/0901f6dc83de/
Log: a no-progress checkin
diff --git a/pypy/module/micronumpy/interp_dtype.py
b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -140,6 +140,9 @@
"V", space.gettypefor(interp_boxes.W_VoidBox),
fields=fields,
fieldnames=fieldnames)
+def dtype_from_dict(space, w_dict):
+ xxx
+
def variable_dtype(space, name):
if name[0] in '<>':
# ignore byte order, not sure if it's worth it for unicode only
diff --git a/pypy/module/micronumpy/test/test_dtypes.py
b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -509,4 +509,5 @@
def test_create_from_dict(self):
from _numpypy import dtype
- d = dtype({...})
+ d = dtype({'names': ['a', 'b', 'c'],
+ })
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit