From: Todd M. <jm...@st...> - 2003-01-03 17:51:06
|
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. > > Thanks, Todd |