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

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Wed Feb 1 09:16:59 CST 2006


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',
> '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?

[packer at zombie ~]$ python -E
Python 2.4 (#2, Feb 12 2005, 00:29:46)
[GCC 3.4.3 (Mandrakelinux 10.2 3.4.3-3mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> long
<type 'long'>
>>> int
<type 'int'>
>>> str
<type 'str'>
>>> dict
<type 'dict'>
>>> 

Gerard




More information about the Numpy-discussion mailing list