Author: Matti Picus <[email protected]>
Branch: numpy-subarrays
Changeset: r63994:3188b490838c
Date: 2013-05-11 23:12 +0300
http://bitbucket.org/pypy/pypy/changeset/3188b490838c/
Log: small fixes
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
@@ -285,7 +285,7 @@
fieldnames = []
for w_elem in lst_w:
size = 1
- shape = space.newtuple([])
+ w_shape = space.newtuple([])
if space.len_w(w_elem) == 3:
w_shape = space.getitem(w_elem, space.wrap(2))
w_fldname = space.getitem(w_elem, space.wrap(0))
@@ -300,7 +300,6 @@
offset += subdtype.itemtype.get_element_size() * size
fieldnames.append(fldname)
itemtype = types.RecordType(ofs_and_items, offset)
- import pdb; pdb.set_trace()
return W_Dtype(itemtype, 20, VOIDLTR, "void" + str(8 *
itemtype.get_element_size()),
"V", space.gettypefor(interp_boxes.W_VoidBox),
fields=fields,
fieldnames=fieldnames)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit