From: Todd M. <jm...@st...> - 2002-12-18 15:03:55
|
Edward C. Jones wrote: > The optional shape argument to fromstring is not documented. Noted. > > ----------------- > > I suggest a documentation section on NumericTypes. "Int8.bytes" and > need documenting. Noted. > > ---------------- > > 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 Nice table! > > The names are listed in the order used in "numerictypes.py". The "*" > cases are exceptions treated there. Are the "?" conversions correct? See No. The Complex32/Float64 conversion has already been fixed in CVS. The Int64/Float32 coercion will be changed from Float32 to Float64. > "genericPromotionExclusions" in "numerictypes.py". Thanks for the excellent feedback! Todd |