[Numpy-discussion] numarray types and PIL modes, revisited
jmiller at stsci.edu
Fri Jan 3 09:52:02 CST 2003
Edward C. Jones wrote:
> So now all I can say is:
> 1. UInt8 == 'X' should not raise an exception. It should return False.
OK. I'll change numarray to return False.
> 3. There needs to be a function that returns True iff arg is a numarry
> type (UInt8, "UInt8", "b", ...).
> def IsType(rep):
> from numerictypes import typeDict
> return isinstance(rep, NumericType) or typeDict.has_key(rep)
Sounds good too. I'll add this to numerictypes.
More information about the Numpy-discussion