[SciPy-User] Integer dtype comparisons
Wed Sep 22 09:37:21 CDT 2010
On Wed, Sep 22, 2010 at 07:07, Flipper <firstname.lastname@example.org> wrote:
> is there a nice way to check whether an object is an Integer? Including
> all python and numpy Integers?
> I tried out subclass, but uint is not a subclass of Int:
>>>> a = numpy.zeros(1,numpy.uint32)
>>>> aType = type(a)
isinstance(a, (int, numpy.integer))
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-User