@@ -60,8 +60,8 @@ Object Protocol
6060 Generic attribute getter function that is meant to be put into a type
6161 object's ``tp_getattro `` slot. It looks for a descriptor in the dictionary
6262 of classes in the object's MRO as well as an attribute in the object's
63- :attr: `__dict__ ` (if present). As outlined in :ref:`descriptors`, data
64- descriptors take preference over instance attributes, while non-data
63+ :attr: `~object. __dict__ ` (if present). As outlined in :ref:`descriptors`,
64+ data descriptors take preference over instance attributes, while non-data
6565 descriptors don't. Otherwise, an :exc:`AttributeError` is raised.
6666
6767
@@ -85,8 +85,8 @@ Object Protocol
8585 object's ``tp_setattro `` slot. It looks for a data descriptor in the
8686 dictionary of classes in the object's MRO, and if found it takes preference
8787 over setting the attribute in the instance dictionary. Otherwise, the
88- attribute is set in the object's :attr: `__dict__ ` (if present). Otherwise,
89- an :exc:`AttributeError` is raised and ``-1`` is returned.
88+ attribute is set in the object's :attr: `~object. __dict__ ` (if present).
89+ Otherwise, an :exc:`AttributeError` is raised and ``-1`` is returned.
9090
9191
9292.. c:function:: int PyObject_DelAttr(PyObject *o, PyObject *attr_name)
@@ -189,9 +189,9 @@ Object Protocol
189189 be done against every entry in *cls *. The result will be ``1 `` when at least one
190190 of the checks returns ``1 ``, otherwise it will be ``0 ``. If *inst * is not a
191191 class instance and *cls * is neither a type object, nor a class object, nor a
192- tuple, *inst * must have a :attr: `__class__ ` attribute --- the class relationship
193- of the value of that attribute with *cls * will be used to determine the result
194- of this function.
192+ tuple, *inst * must have a :attr: `~instance. __class__ ` attribute --- the
193+ class relationship of the value of that attribute with *cls * will be used
194+ to determine the result of this function.
195195
196196
197197Subclass determination is done in a fairly straightforward way, but includes a
@@ -201,9 +201,9 @@ of. If :class:`A` and :class:`B` are class objects, :class:`B` is a subclass of
201201either is not a class object, a more general mechanism is used to determine the
202202class relationship of the two objects. When testing if *B * is a subclass of
203203*A *, if *A * is *B *, :c:func: `PyObject_IsSubclass ` returns true. If *A * and *B *
204- are different objects, *B *'s :attr: `__bases__ ` attribute is searched in a
205- depth-first fashion for *A * --- the presence of the :attr: `__bases__ ` attribute
206- is considered sufficient for this determination.
204+ are different objects, *B *'s :attr: `~class. __bases__ ` attribute is searched in
205+ a depth-first fashion for *A * --- the presence of the :attr: `~class. __bases__ `
206+ attribute is considered sufficient for this determination.
207207
208208
209209.. c :function :: int PyObject_IsSubclass (PyObject *derived, PyObject *cls)
0 commit comments