Commits

Romain Guillebert committed c0ad61f

Add aliases for the float64 and string dtypes

Comments (0)

Files changed (1)

pypy/module/micronumpy/interp_dtype.py

             alternate_constructors=[space.w_float,
                                     space.gettypefor(interp_boxes.W_NumberBox),
                                    ],
-            aliases=["float"],
+            aliases=["float", "double"],
         )
         self.w_complex64dtype = W_ComplexDtype(
             types.Complex64(),
             char='S',
             w_box_type = space.gettypefor(interp_boxes.W_StringBox),
             alternate_constructors=[space.w_str],
+            aliases=["str"],
         )
         self.w_unicodedtype = W_Dtype(
             types.UnicodeType(1),