Author: Timo Paulssen <timona...@perpetuum-immobile.de>
Branch: numpy-data-buffer
Changeset: r47779:7c67ce4f3e43
Date: 2011-10-03 07:22 +0200
http://bitbucket.org/pypy/pypy/changeset/7c67ce4f3e43/

Log:    add property "itemsize" to dtype objects

diff --git a/pypy/module/_numpy/interp_dtype.py 
b/pypy/module/_numpy/interp_dtype.py
--- a/pypy/module/_numpy/interp_dtype.py
+++ b/pypy/module/_numpy/interp_dtype.py
@@ -400,5 +400,6 @@
     num = interp_attrproperty("num", cls=W_Dtype),
     kind = interp_attrproperty("kind", cls=W_Dtype),
     shape = GetSetProperty(W_Dtype.descr_get_shape),
+    itemsize = interp_attrproperty("num_bytes", cls=W_Dtype),
 )
 W_Dtype.typedef.acceptable_as_base_class = False
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to