Skip to content

Commit f0fb022

Browse files
authored
Use :attr:~class.__base__ instead of :attr:__base__
1 parent 1275b18 commit f0fb022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/object.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Object Protocol
307307
class, are considered classes. However, objects can override this by having
308308
a :attr:`~class.__bases__` attribute (which must be a tuple of base classes).
309309
310-
Another function, :attr:`__base__` that is specific to CPython and also
310+
Another function, :attr:`~class.__base__` that is specific to CPython and also
311311
exists in Jython and PyPy can also be used on a class inheriting from one
312312
or more classes.
313313
@@ -347,7 +347,7 @@ Object Protocol
347347
348348
The first user defined class that inherits either an object or
349349
derives from a class (directly or indirectly) that inherits an
350-
object is the value returned by the :attr:`__base__` function.
350+
object is the value returned by the :attr:`~class.__base__` function.
351351
352352
>>> class D(B, A): pass
353353
...

0 commit comments

Comments
 (0)