[pypy-commit] pypy default: convert this back to a list and verify it is complete
bdkearns
noreply at buildbot.pypy.org
Tue Feb 12 07:43:39 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r61118:f9c6ec8b2b64
Date: 2013-02-12 01:39 -0500
http://bitbucket.org/pypy/pypy/changeset/f9c6ec8b2b64/
Log: convert this back to a list and verify it is complete
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
@@ -646,6 +646,11 @@
self.dtypes_by_name[alias] = dtype
self.dtypes_by_name[dtype.char] = dtype
+ self.dtypes_by_num = [dtype for dtype in
+ sorted(self.dtypes_by_num.values(), key=lambda dtype: dtype.num)
+ if dtype.num <= self.w_float64dtype.num]
+ assert len(self.dtypes_by_num) == self.w_float64dtype.num + 1
+
typeinfo_full = {
'LONGLONG': self.w_int64dtype,
'SHORT': self.w_int16dtype,
More information about the pypy-commit
mailing list