3 Jan
2003
3 Jan
'03
4:52 a.m.
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