import numpy # list of numarray data types integer_types = [ numpy.int8, numpy.uint8, numpy.int16, numpy.uint16, numpy.int32, numpy.uint32, numpy.int64, numpy.uint64] float_types = [numpy.float32, numpy.float64] complex_types = [numpy.complex64, numpy.complex128] types = integer_types + float_types