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
)
17 DictionaryType
= type({})
20 FunctionType
= type(_f
)
21 LambdaType
= type(lambda: None) # Same as FunctionType
22 CodeType
= type(_f
.func_code
)
27 UnboundMethodType
= type(_C
._m
) # Same as MethodType
29 InstanceType
= type(_x
)
30 MethodType
= type(_x
._m
)
32 BuiltinFunctionType
= type(len)
33 BuiltinMethodType
= type([].append
) # Same as BuiltinFunctionType
35 ModuleType
= type(sys
)
37 FileType
= type(sys
.stdin
) # XXX what if it was assigned to?
38 XRangeType
= type(xrange(0))
43 TracebackType
= type(sys
.exc_traceback
)
44 FrameType
= type(sys
.exc_traceback
.tb_frame
)
46 del sys
, _f
, _C
, _x
# Not for export