Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r69844:4ca307beabf3
Date: 2014-03-10 17:49 -0400
http://bitbucket.org/pypy/pypy/changeset/4ca307beabf3/

Log:    fix size of numpy unicode dtype

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1738,7 +1738,10 @@
             self._store(storage, i, offset, box, width)
 
 class UnicodeType(FlexibleType):
-    T = lltype.UniChar
+    T = lltype.Char
+
+    def get_element_size(self):
+        return 4  # always UTF-32
 
     @jit.unroll_safe
     def coerce(self, space, dtype, w_item):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to