Changes between Version 3 and Version 4 of DtypeKinds

Show
Ignore:
Timestamp:
04/24/08 12:52:51 (5 years ago)
Author:
cookedm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DtypeKinds

    v3 v4  
    1414|| O || Python object || `object_` || 
    1515 
    16 The kind is used when determining a common dtype for two dtypes. It also can used along with the byte-width to uniquely identify the dtype (`i8`, for instance, is a 64-bit signed integer). It is also used in Numpy and Scipy in a handful of places for checking integerness (or similiar), although those places could be replaced with `isinstance`. 
    17  
    18  * To check if a dtype object `dt` is an integer scalar type, use `isinstance(dt.type, (number, unsignedinteger))` 
    19  * To check for a floating-point number, use `isinstance(dt.type, (number, floating))` 
     16The kind is used when determining a common dtype for two dtypes. It also can used along with the byte-width to uniquely identify the dtype (`i8`, for instance, is a 64-bit signed integer). It is also used in Numpy and Scipy in a handful of places for checking integerness (or similiar), although those places could be replaced with `issubsctype`. 
    2017 
    2118Kind should not be confused with the typecode (another holdover from Numeric).