Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ using different quoting conventions, are allowed, and their meaning is the same
as their concatenation::

>>> "hello" 'world'
"helloworld"
'helloworld'

This feature is defined at the syntactical level, so it only works with literals.
To concatenate string expressions at run time, the '+' operator may be used::
Expand All @@ -302,7 +302,7 @@ and formatted string literals.
For example::

>>> "Hello" r', ' f"{name}!"
"Hello, Blaise!"
'Hello, Blaise!'

This feature can be used to reduce the number of backslashes
needed, to split long strings conveniently across long lines, or even to add
Expand Down Expand Up @@ -797,7 +797,8 @@ filtered to only include names that start with ``a``::
... for name in vars(module)
... if name.startswith('a')
... ]
['array', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for whoever merges this: this should not be merged to 3.14 or 3.15 (I think) because asinpi doesn't exist there.

['array', 'acos', 'acosh', 'acospi', 'asin', 'asinh', 'asinpi', 'atan', 'atan2',
'atanh', 'atan2pi', 'atanpi']

At run time, this roughly corresponds to defining and calling::

Expand Down
Loading