mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
gh-101100: Fix sphinx warnings in tutorial/classes.rst
(#108746)
This commit is contained in:
parent
b936cf4fe0
commit
e775601ef1
2 changed files with 1 additions and 2 deletions
|
@ -156,7 +156,6 @@ Doc/reference/expressions.rst
|
||||||
Doc/reference/import.rst
|
Doc/reference/import.rst
|
||||||
Doc/reference/simple_stmts.rst
|
Doc/reference/simple_stmts.rst
|
||||||
Doc/tutorial/appendix.rst
|
Doc/tutorial/appendix.rst
|
||||||
Doc/tutorial/classes.rst
|
|
||||||
Doc/tutorial/controlflow.rst
|
Doc/tutorial/controlflow.rst
|
||||||
Doc/tutorial/datastructures.rst
|
Doc/tutorial/datastructures.rst
|
||||||
Doc/tutorial/introduction.rst
|
Doc/tutorial/introduction.rst
|
||||||
|
|
|
@ -276,7 +276,7 @@ definition looked like this::
|
||||||
then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, returning
|
then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, returning
|
||||||
an integer and a function object, respectively. Class attributes can also be
|
an integer and a function object, respectively. Class attributes can also be
|
||||||
assigned to, so you can change the value of ``MyClass.i`` by assignment.
|
assigned to, so you can change the value of ``MyClass.i`` by assignment.
|
||||||
:attr:`__doc__` is also a valid attribute, returning the docstring belonging to
|
:attr:`!__doc__` is also a valid attribute, returning the docstring belonging to
|
||||||
the class: ``"A simple example class"``.
|
the class: ``"A simple example class"``.
|
||||||
|
|
||||||
Class *instantiation* uses function notation. Just pretend that the class
|
Class *instantiation* uses function notation. Just pretend that the class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue