The optional shape argument to fromstring is not documented.
-----------------
I suggest a documentation section on NumericTypes. "Int8.bytes" and
need documenting.
----------------
Table of Automatic Coercions (found by experiment)
B I8 U8 I16 U16 I32 U32 I64 U64 F32 F64 C32 C64
------------------------------------------------------------------
B | *I8 I8 U8 I16 U16 I32 U32 I64 U64 F32 F64 C32 C64
I8 | I8 *I16 I16 U16 I32 U32 I64 U64 F32 F64 C32 C64
U8 | U8 I16 U16 I32 U32 I64 U64 F32 F64 C32 C64
I16 | I16 *I32 I32 U32 I64 U64 F32 F64 C32 C64
U16 | U16 I32 U32 I64 U64 F32 F64 C32 C64
I32 | I32 *I64 I64 U64 F32 F64 C32 C64
U32 | U32 I64 U64 F32 F64 C32 C64
I64 | I64 *I64 ?F32 F64 C32 C64
U64 | U64 ?F32 F64 C32 C64
F32 | F32 F64 C32 C64
F64 | F64 ?C32 C64
C32 | C32 C64
C64 | C64
The names are listed in the order used in "numerictypes.py". The "*"
cases are exceptions treated there. Are the "?" conversions correct? See
"genericPromotionExclusions" in "numerictypes.py".
|