|
From: Travis O. <oli...@ee...> - 2006-02-01 22:24:07
|
Gerard Vermeulen wrote: >On Wed, 01 Feb 2006 11:15:09 -0500 >"Colin J. Williams" <cj...@sy...> 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', >>'Instance >>Type', 'IntType', 'LambdaType', 'ListType', 'LongType', 'MethodType', >>'ModuleType', 'NoneType', 'NotImplementedType', 'ObjectType', >>'SliceType', 'StringType', 'StringTypes', 'TracebackType', 'TupleType', >>'TypeType', 'UnboundMethodType', 'UnicodeType', 'XRan >>geType', '__builtins__', '__doc__', '__file__', '__name__'] >>[Dbg]>>> >> >> >> > >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. -Travis |