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
26 CodeType
= type(_f
.func_code
)
31 UnboundMethodType
= type(_C
._m
) # Same as MethodType
33 InstanceType
= type(_x
)
34 MethodType
= type(_x
._m
)
36 BuiltinFunctionType
= type(len)
37 BuiltinMethodType
= type([].append
) # Same as BuiltinFunctionType
39 ModuleType
= type(sys
)
41 FileType
= type(sys
.stdin
) # XXX what if it was assigned to?
42 XRangeType
= type(xrange(0))
47 TracebackType
= type(sys
.exc_traceback
)
48 FrameType
= type(sys
.exc_traceback
.tb_frame
)
50 del sys
, _f
, _C
, _x
# Not for export