Skip to content

Commit 9a23017

Browse files
committed
Add notes about where else symbols appear
1 parent df5a1d2 commit 9a23017

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,9 @@ The following tokens are :dfn:`operators` -- they are used to combine
13701370
< > <= >= == !=
13711371
. @ :=
13721372
1373+
Plus (``+``) and minus (``-``) signs can also occur in
1374+
:ref:`floating-point <floating>` and :ref:`imaginary` literals.
1375+
13731376
.. index:: single: delimiters
13741377

13751378
The following tokens are :dfn:`delimiters` -- simple tokens that
@@ -1387,6 +1390,10 @@ or delimiters.
13871390
The period can also occur in :ref:`floating-point <floating>` and
13881391
:ref:`imaginary` literals.
13891392

1393+
The symbols ``{``, ``}``, ``!`` and ``:`` have special meaning in
1394+
:ref:`formatted string literals <f-strings>` and
1395+
:ref:`template string literals <t-strings>`.
1396+
13901397
.. _lexical-ellipsis:
13911398

13921399
A sequence of three periods (without whitespace between them) has a special
@@ -1404,6 +1411,10 @@ they serve lexically as delimiters, but also perform an operation:
14041411
+= -= *= **= /= //= %=
14051412
<<= >>= &= |= ^= @=
14061413
1414+
See :ref:`operator and delimiter tokens <token_operators_delimiters>`
1415+
in the :mod:`!token` module documentation for names of the operator and
1416+
delimiter tokens.
1417+
14071418
The following printing ASCII characters have special meaning as part of other
14081419
tokens or are otherwise significant to the lexical analyzer:
14091420

0 commit comments

Comments
 (0)