We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba5a5a commit 2b20753Copy full SHA for 2b20753
Doc/tutorial/controlflow.rst
@@ -1047,14 +1047,20 @@ Here is an example of a multi-line docstring::
1047
>>> def my_function():
1048
... """Do nothing, but document it.
1049
...
1050
- ... No, really, it doesn't do anything.
+ ... No, really, it doesn't do anything:
1051
+ ...
1052
+ ... >>> my_function()
1053
+ ... >>>
1054
... """
1055
... pass
1056
1057
>>> print(my_function.__doc__)
1058
Do nothing, but document it.
1059
- No, really, it doesn't do anything.
1060
+ No, really, it doesn't do anything:
1061
+
1062
+ >>> my_function()
1063
+ >>>
1064
1065
1066
.. _tut-annotations:
0 commit comments