diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-26 08:18:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 08:18:57 (GMT) |
commit | e825b4e1a9bbe1d4c561f4cbbe6857653ef13a15 (patch) | |
tree | d825132fe89fdd3c0c11a0f98aba5b481377b2f5 /Doc/tutorial | |
parent | 3b87151879adb795c3c0372832c87da84ee93974 (diff) | |
download | cpython-e825b4e1a9bbe1d4c561f4cbbe6857653ef13a15.zip cpython-e825b4e1a9bbe1d4c561f4cbbe6857653ef13a15.tar.gz cpython-e825b4e1a9bbe1d4c561f4cbbe6857653ef13a15.tar.bz2 |
[3.6] bpo-35054: Add more index entries for symbols. (GH-10064). (GH-10119)
(cherry picked from commit ddb961d2abe5d5fde76d85b21a77e4e91e0043ad)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 7 | ||||
-rw-r--r-- | Doc/tutorial/introduction.rst | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 4bcdafd..f87cd4d 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -526,7 +526,7 @@ Arbitrary Argument Lists ------------------------ .. index:: - statement: * + single: *; in function calls Finally, the least frequently used option is to specify that a function can be called with an arbitrary number of arguments. These arguments will be wrapped @@ -570,7 +570,7 @@ or tuple:: [3, 4, 5] .. index:: - statement: ** + single: **; in function calls In the same fashion, dictionaries can deliver keyword arguments with the ``**``\ -operator:: @@ -675,7 +675,8 @@ Function Annotations .. sectionauthor:: Zachary Ware <zachary.ware@gmail.com> .. index:: pair: function; annotations - single: -> (return annotation assignment) + single: ->; function annotations + single: :; function annotations :ref:`Function annotations <function>` are completely optional metadata information about the types used by user-defined functions (see :pep:`3107` and diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 2454bf0..0663af1 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -11,6 +11,8 @@ with a prompt are output from the interpreter. Note that a secondary prompt on a line by itself in an example means you must type a blank line; this is used to end a multi-line command. +.. index:: single: #; comment + Many of the examples in this manual, even those entered at the interactive prompt, include comments. Comments in Python start with the hash character, ``#``, and extend to the end of the physical line. A comment may appear at the |