mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-35054: Add more index entries for symbols. (GH-10064)
This commit is contained in:
parent
3ec9af75f6
commit
ddb961d2ab
26 changed files with 466 additions and 64 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue