summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorShaygan Hooshyari <sh.hooshyari@gmail.com>2024-09-03 14:49:38 (GMT)
committerGitHub <noreply@github.com>2024-09-03 14:49:38 (GMT)
commit68fe5758bf1900ffdcdf7cd9e40f5018555a39d4 (patch)
tree0f07a816f8ec32c43b0d3e9c69aeec2144f57647 /Doc
parent782217f28f0d67916fc3ff82b03b88573686c0e7 (diff)
downloadcpython-68fe5758bf1900ffdcdf7cd9e40f5018555a39d4.zip
cpython-68fe5758bf1900ffdcdf7cd9e40f5018555a39d4.tar.gz
cpython-68fe5758bf1900ffdcdf7cd9e40f5018555a39d4.tar.bz2
gh-123579: Document exclamation token (#123612)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/lexical_analysis.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index 635d365..c2f5f14 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -1018,9 +1018,9 @@ The following tokens serve as delimiters in the grammar:
.. code-block:: none
( ) [ ] { }
- , : . ; @ = ->
- += -= *= /= //= %= @=
- &= |= ^= >>= <<= **=
+ , : ! . ; @ =
+ -> += -= *= /= //= %=
+ @= &= |= ^= >>= <<= **=
The period can also occur in floating-point and imaginary literals. A sequence
of three periods has a special meaning as an ellipsis literal. The second half