Skip to content

Commit df5a1d2

Browse files
committed
More rewording
1 parent 5efbd33 commit df5a1d2

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,42 +1359,45 @@ Operators and delimiters
13591359

13601360
.. index:: single: operators
13611361

1362-
The following tokens are operators -- they can be put between two
1363-
:ref:`expressions <expressions>` (or in front of an expression)
1364-
to make a larger expression.
1362+
The following tokens are :dfn:`operators` -- they are used to combine
1363+
:ref:`expressions <expressions>`.
13651364

13661365
.. code-block:: none
13671366
13681367
13691368
+ - * ** / // %
13701369
<< >> & | ^ ~
13711370
< > <= >= == !=
1372-
@ := .
1371+
. @ :=
13731372
13741373
.. index:: single: delimiters
13751374

1376-
The following tokens serve as delimiters in the grammar:
1375+
The following tokens are :dfn:`delimiters` -- simple tokens that
1376+
are not operators:
13771377

13781378
.. code-block:: none
13791379
13801380
( ) [ ] { }
13811381
, : ! ; = ->
13821382
. @
13831383
1384-
The period can also occur in floating-point and imaginary literals;
1385-
the period and the ``@`` can also serve as operators.
1384+
The period (``.``) and at-sign (``@``) can serve either as operators
1385+
or delimiters.
1386+
1387+
The period can also occur in :ref:`floating-point <floating>` and
1388+
:ref:`imaginary` literals.
13861389

13871390
.. _lexical-ellipsis:
13881391

1389-
A sequence of three periods has a special meaning as an
1390-
:py:data:`Ellipsis` literal:
1392+
A sequence of three periods (without whitespace between them) has a special
1393+
meaning as an :py:data:`Ellipsis` literal:
13911394

13921395
.. code-block:: none
13931396
13941397
...
13951398
1396-
The following :ref:`augmented assignment <augassign>` operators serve
1397-
lexically as delimiters, but also perform an operation:
1399+
The following tokens are :ref:`augmented assignment <augassign>` operators:
1400+
they serve lexically as delimiters, but also perform an operation:
13981401

13991402
.. code-block:: none
14001403

0 commit comments

Comments
 (0)