File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -392,9 +392,9 @@ Object Protocol
392392 class, are considered classes. However, objects can override this by having
393393 a :attr: `~type.__bases__ ` attribute (which must be a tuple of base classes).
394394
395- Another function, :attr:`~class. __base__` that is specific to CPython and also
396- exists in Jython and PyPy can also be used on a class inheriting from one
397- or more classes.
395+ Another attribute, `` __base__`` is specific to CPython and also exists in
396+ Jython and PyPy. It can be used on a class inheriting from one or more
397+ classes.
398398
399399 ``__base__`` corresponds to the :c:member:`~PyTypeObject.tp_base` in a
400400 type object. At the C level, Python has a single inheritance model
@@ -432,15 +432,16 @@ Object Protocol
432432
433433 The first user defined class that inherits either an object or
434434 derives from a class (directly or indirectly) that inherits an
435- object is the value returned by the :attr:`~class. __base__` function .
435+ object is the value returned by the `` __base__`` attribute .
436436
437437 >>> class D(B, A): pass
438438 ...
439439 >>> D.__base__
440440 <class 'B'>
441441
442442 .. impl-detail::
443- Note that behavior of the ``__base__`` attribute is dependent on the :term:`CPython` implementation.
443+ Note that behavior of the ``__base__`` attribute is dependent on the
444+ :term:`CPython` implementation.
444445
445446
446447.. c:function:: int PyObject_IsInstance(PyObject *inst, PyObject *cls)
You can’t perform that action at this time.
0 commit comments