@@ -567,12 +567,12 @@ and :c:data:`PyType_Type` effectively act as defaults.)
567
567
568
568
For :ref: `statically allocated type objects <static-types >`,
569
569
the *tp_name * field should contain a dot.
570
- Everything before the last dot is made accessible as the :attr: `__module__ `
570
+ Everything before the last dot is made accessible as the :attr: `~type. __module__ `
571
571
attribute, and everything after the last dot is made accessible as the
572
- :attr: `~definition .__name__ ` attribute.
572
+ :attr: `~type .__name__ ` attribute.
573
573
574
574
If no dot is present, the entire :c:member: `~PyTypeObject.tp_name ` field is made accessible as the
575
- :attr: `~definition .__name__ ` attribute, and the :attr: `__module__ ` attribute is undefined
575
+ :attr: `~type .__name__ ` attribute, and the :attr: `~type. __module__ ` attribute is undefined
576
576
(unless explicitly set in the dictionary, as explained above). This means your
577
577
type will be impossible to pickle. Additionally, it will not be listed in
578
578
module documentations created with pydoc.
@@ -1131,7 +1131,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
1131
1131
1132
1132
.. c :macro :: Py_TPFLAGS_MANAGED_DICT
1133
1133
1134
- This bit indicates that instances of the class have a `` __dict__ ` `
1134
+ This bit indicates that instances of the class have a `~object. __dict__ `
1135
1135
attribute, and that the space for the dictionary is managed by the VM.
1136
1136
1137
1137
If this flag is set, :c:macro: `Py_TPFLAGS_HAVE_GC ` should also be set.
@@ -1335,8 +1335,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
1335
1335
.. c :member :: const char * PyTypeObject.tp_doc
1336
1336
1337
1337
An optional pointer to a NUL-terminated C string giving the docstring for this
1338
- type object. This is exposed as the :attr: `__doc__ ` attribute on the type and
1339
- instances of the type.
1338
+ type object. This is exposed as the :attr: `~type. __doc__ ` attribute on the
1339
+ type and instances of the type.
1340
1340
1341
1341
**Inheritance: **
1342
1342
@@ -2036,7 +2036,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
2036
2036
A collection of subclasses. Internal use only. May be an invalid pointer.
2037
2037
2038
2038
To get a list of subclasses, call the Python method
2039
- :py:meth: `~class .__subclasses__ `.
2039
+ :py:meth: `~type .__subclasses__ `.
2040
2040
2041
2041
.. versionchanged :: 3.12
2042
2042
0 commit comments