1. Pypy
  2. Untitled project
  3. pypy

Commits

Romain Guillebert  committed c0ad61f

Add aliases for the float64 and string dtypes

  • Participants
  • Parent commits d3c70e7
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_dtype.py

View file
             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),