1 """Define names for all type symbols known in the standard interpreter.
3 Types that are part of optional modules (e.g. array) are not listed.
5 from __future__
import generators
29 StringTypes = (StringType, UnicodeType)
31 StringTypes = (StringType,)
33 BufferType = type(buffer(
''))
37 DictType = DictionaryType = dict
40 FunctionType = type(_f)
41 LambdaType = type(
lambda:
None)
43 CodeType = type(_f.func_code)
50 GeneratorType = type(
g())
56 UnboundMethodType = type(_C._m)
58 InstanceType = type(_x)
59 MethodType = type(_x._m)
61 BuiltinFunctionType = type(len)
62 BuiltinMethodType = type([].append)
64 ModuleType = type(sys)
66 XRangeType = type(xrange(0))
72 tb = sys.exc_info()[2]
73 TracebackType = type(tb)
74 FrameType = type(tb.tb_frame)
75 except AttributeError:
81 SliceType = type(slice(0))
82 EllipsisType = type(Ellipsis)
84 DictProxyType = type(TypeType.__dict__)
86 del sys, _f, _C, _x, generators