[Numpy-discussion] RE: [Numpy-user] possible error with isarrtype

Travis Oliphant oliphant at ee.byu.edu
Wed Feb 1 14:25:02 EST 2006

Gerard Vermeulen wrote:

>On Wed, 01 Feb 2006 11:15:09 -0500
>"Colin J. Williams" <cjw at sympatico.ca> wrote:
>[ depration + style ]
>>[Dbg]>>> import types
>>[Dbg]>>> dir(types)
>>['BooleanType', 'BufferType', 'BuiltinFunctionType',
>>'BuiltinMethodType', 'ClassType', 'CodeType', 'ComplexType',
>>'DictProxyType', 'DictType', 'DictionaryType', 'EllipsisType',
>>'FileType', 'FloatType', 'FrameType', 'FunctionType', 'GeneratorType',
>>Type', 'IntType', 'LambdaType', 'ListType', 'LongType', 'MethodType',
>>'ModuleType', 'NoneType', 'NotImplementedType', 'ObjectType',
>>'SliceType', 'StringType', 'StringTypes', 'TracebackType', 'TupleType',
>>'TypeType', 'UnboundMethodType', 'UnicodeType', 'XRan
>>geType', '__builtins__', '__doc__', '__file__', '__name__']
>Isn't the types module becoming superfluous?
That's the point I was trying to make.  ArrayType is to ndarray as 
DictionaryType is to dict.  My understanding is that the use of 
types.DictionaryType is discouraged.


More information about the NumPy-Discussion mailing list