@@ -33,77 +33,10 @@ Accordingly, the example above should be written as follows::
3333 else:
3434 mylist.remove(item)
3535
36- The module defines the following names:
37-
38-
39- .. data :: NoneType
40-
41- The type of ``None ``.
42-
43-
44- .. data :: TypeType
45- ClassType
46-
47- .. index :: builtin: type
48-
49- The type of type objects (such as returned by :func: `type `) and user-defined
50- classes without metaclass; alias of the built-in :class: `type `.
51-
52-
53- .. data :: ObjectType
54-
55- Alias of the built-in :func: `object `.
56-
57-
58- .. data :: BooleanType
59-
60- The type of the :class: `bool ` values ``True `` and ``False ``; alias of the
61- built-in :class: `bool `.
62-
63-
64- .. data :: IntType
65- LongType
66-
67- The type of integers (e.g. ``1 ``); alias of the built-in :class: `int `.
68-
69-
70- .. data :: FloatType
71-
72- The type of floating point numbers (e.g. ``1.0 ``); alias of the built-in
73- :class: `float `.
74-
75-
76- .. data :: ComplexType
77-
78- The type of complex numbers (e.g. ``1.0j ``); alias of the built-in
79- :class: `complex `. This is not defined if Python was built without complex
80- number support.
81-
82-
83- .. data :: StringType
84-
85- The type of character strings (e.g. ``'Spam' ``); alias of the built-in
86- :class: `str `.
87-
88-
89- .. data :: TupleType
90-
91- The type of tuples (e.g. ``(1, 2, 3, 'Spam') ``); alias of the built-in
92- :class: `tuple `.
93-
94-
95- .. data :: ListType
96-
97- The type of lists (e.g. ``[0, 1, 2, 3] ``); alias of the built-in
98- :class: `list `.
99-
100-
101- .. data :: DictType
102- DictionaryType
103-
104- The type of dictionaries (e.g. ``{'Bacon': 1, 'Ham': 0} ``); alias of the
105- built-in :class: `dict `.
36+ Starting in Python 3.0 all types that are also available as builtins are no
37+ longer exposed through the types module.
10638
39+ The module defines the following names:
10740
10841.. data :: FunctionType
10942 LambdaType
@@ -141,19 +74,6 @@ The module defines the following names:
14174 The type of modules.
14275
14376
144- .. data :: SliceType
145-
146- .. index :: builtin: slice
147-
148- The type of objects returned by :func: `slice `; alias of the built-in
149- :class: `slice `.
150-
151-
152- .. data :: EllipsisType
153-
154- The type of ``Ellipsis ``.
155-
156-
15777.. data :: TracebackType
15878
15979 The type of traceback objects such as found in ``sys.exc_info()[2] ``.
@@ -165,22 +85,9 @@ The module defines the following names:
16585 traceback object.
16686
16787
168- .. XXX!
169- .. data :: BufferType
170-
171- .. index :: builtin: buffer
172-
173- The type of buffer objects created by the :func: `buffer ` function.
174-
175-
17688.. data :: DictProxyType
17789
178- The type of dict proxies, such as ``TypeType.__dict__ ``.
179-
180-
181- .. data :: NotImplementedType
182-
183- The type of ``NotImplemented ``
90+ The type of dict proxies, such as ``type.__dict__ ``.
18491
18592
18693.. data :: GetSetDescriptorType
0 commit comments