Skip to content

Commit 2aff335

Browse files
committed
python#9204: remove mentions of removed types in the types module.
1 parent 418cc73 commit 2aff335

10 files changed

Lines changed: 15 additions & 29 deletions

File tree

Doc/c-api/bytearray.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Byte Array Objects
1616
.. c:var:: PyTypeObject PyByteArray_Type
1717
1818
This instance of :c:type:`PyTypeObject` represents the Python bytearray type;
19-
it is the same object as ``bytearray`` in the Python layer.
19+
it is the same object as :class:`bytearray` in the Python layer.
20+
2021

2122
Type check macros
2223
^^^^^^^^^^^^^^^^^

Doc/c-api/bytes.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ called with a non-bytes parameter.
1818

1919
.. c:var:: PyTypeObject PyBytes_Type
2020
21-
.. index:: single: BytesType (in module types)
22-
2321
This instance of :c:type:`PyTypeObject` represents the Python bytes type; it
24-
is the same object as ``bytes`` in the Python layer. .
22+
is the same object as :class:`bytes` in the Python layer.
2523

2624

2725
.. c:function:: int PyBytes_Check(PyObject *o)

Doc/c-api/complex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Complex Numbers as Python Objects
8282
.. c:var:: PyTypeObject PyComplex_Type
8383
8484
This instance of :c:type:`PyTypeObject` represents the Python complex number
85-
type. It is the same object as ``complex`` and ``types.ComplexType``.
85+
type. It is the same object as :class:`complex` in the Python layer.
8686
8787
8888
.. c:function:: int PyComplex_Check(PyObject *p)

Doc/c-api/dict.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@ Dictionary Objects
1515

1616
.. c:var:: PyTypeObject PyDict_Type
1717
18-
.. index::
19-
single: DictType (in module types)
20-
single: DictionaryType (in module types)
21-
2218
This instance of :c:type:`PyTypeObject` represents the Python dictionary
23-
type. This is exposed to Python programs as ``dict`` and
24-
``types.DictType``.
19+
type. This is the same object as :class:`dict` in the Python layer.
2520

2621

2722
.. c:function:: int PyDict_Check(PyObject *p)

Doc/c-api/float.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ Floating Point Objects
1515

1616
.. c:var:: PyTypeObject PyFloat_Type
1717
18-
.. index:: single: FloatType (in modules types)
19-
2018
This instance of :c:type:`PyTypeObject` represents the Python floating point
21-
type. This is the same object as ``float`` and ``types.FloatType``.
19+
type. This is the same object as :class:`float` in the Python layer.
2220

2321

2422
.. c:function:: int PyFloat_Check(PyObject *p)

Doc/c-api/list.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ List Objects
1515

1616
.. c:var:: PyTypeObject PyList_Type
1717
18-
This instance of :c:type:`PyTypeObject` represents the Python list type. This
19-
is the same object as ``list`` in the Python layer.
18+
This instance of :c:type:`PyTypeObject` represents the Python list type.
19+
This is the same object as :class:`list` in the Python layer.
2020

2121

2222
.. c:function:: int PyList_Check(PyObject *p)

Doc/c-api/long.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ All integers are implemented as "long" integer objects of arbitrary size.
1818
.. c:var:: PyTypeObject PyLong_Type
1919
2020
This instance of :c:type:`PyTypeObject` represents the Python integer type.
21-
This is the same object as ``int``.
21+
This is the same object as :class:`int` in the Python layer.
2222

2323

2424
.. c:function:: int PyLong_Check(PyObject *p)

Doc/c-api/slice.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ Slice Objects
88

99
.. c:var:: PyTypeObject PySlice_Type
1010
11-
.. index:: single: SliceType (in module types)
12-
13-
The type object for slice objects. This is the same as ``slice`` and
14-
``types.SliceType``.
11+
The type object for slice objects. This is the same as :class:`slice` in the
12+
Python layer.
1513

1614

1715
.. c:function:: int PySlice_Check(PyObject *ob)

Doc/c-api/tuple.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ Tuple Objects
1515

1616
.. c:var:: PyTypeObject PyTuple_Type
1717
18-
.. index:: single: TupleType (in module types)
19-
20-
This instance of :c:type:`PyTypeObject` represents the Python tuple type; it is
21-
the same object as ``tuple`` and ``types.TupleType`` in the Python layer..
18+
This instance of :c:type:`PyTypeObject` represents the Python tuple type; it
19+
is the same object as :class:`tuple` in the Python layer.
2220

2321

2422
.. c:function:: int PyTuple_Check(PyObject *p)

Doc/c-api/type.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ Type Objects
1515

1616
.. c:var:: PyObject* PyType_Type
1717
18-
.. index:: single: TypeType (in module types)
19-
20-
This is the type object for type objects; it is the same object as ``type`` and
21-
``types.TypeType`` in the Python layer.
18+
This is the type object for type objects; it is the same object as
19+
:class:`type` in the Python layer.
2220

2321

2422
.. c:function:: int PyType_Check(PyObject *o)

0 commit comments

Comments
 (0)