1 # Define names for all type symbols known in the standard interpreter.
2 # Types that are part of optional modules (e.g. array) are not listed.
7 TypeType
= type(NoneType
)
13 ComplexType
= type(complex(0,1))
21 DictType
= DictionaryType
= type({})
24 FunctionType
= type(_f
)
25 LambdaType
= type(lambda: None) # Same as FunctionType
27 CodeType
= type(_f
.func_code
)
34 UnboundMethodType
= type(_C
._m
) # Same as MethodType
36 InstanceType
= type(_x
)
37 MethodType
= type(_x
._m
)
39 BuiltinFunctionType
= type(len)
40 BuiltinMethodType
= type([].append
) # Same as BuiltinFunctionType
42 ModuleType
= type(sys
)
45 FileType
= type(sys
.stdin
) # XXX what if it was assigned to?
48 XRangeType
= type(xrange(0))
54 tb
= sys
.exc_info()[2]
55 TracebackType
= type(tb
)
56 FrameType
= type(tb
.tb_frame
)
61 SliceType
= type(slice(0))
62 EllipsisType
= type(Ellipsis)
64 del sys
, _f
, _C
, _x
# Not for export