Types missing from "types"module
Stephen Hansen
ixokai at ixokai.io
Thu Jun 24 01:03:47 EDT 2010
Sent from my iPad
On Jun 23, 2010, at 9:24 PM, John Nagle <nagle at animats.com> wrote:
> Here's dir(types), in Python 2.6.5:
>
> ['BooleanType', 'BufferType', 'BuiltinFunctionType', 'BuiltinMethodType', 'ClassType', 'CodeType', 'ComplexType', 'DictProxyType', 'DictType', 'DictionaryType', 'EllipsisType', 'FileType', 'FloatType', 'FrameType', 'FunctionType', 'GeneratorType', 'GetSetDescriptorType', 'InstanceType', 'IntType', 'LambdaType', 'ListType', 'LongType', 'MemberDescriptorType', 'MethodType', 'ModuleType', 'NoneType','NotImplementedType', 'ObjectType', 'SliceType', 'StringType', 'StringTypes', 'TracebackType', 'TupleType', 'TypeType', 'UnboundMethodType', 'UnicodeType', 'XRangeType', '__builtins__', '__doc__', '__file__', '__name__', '__package__']
>
> Seems to be missing SetType, FrozenSetType, BytesType, and
> ByteArrayType. Anything else missing?
>
> (Arguably, "bytes" isn't really distinguished until 3.x, but
> still...)
>
> John Nagle
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list