]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-123579: Document exclamation token (GH-123612) (#123638)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Sep 2024 14:56:19 +0000 (16:56 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2024 14:56:19 +0000 (14:56 +0000)
(cherry picked from commit 68fe5758bf1900ffdcdf7cd9e40f5018555a39d4)

Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
Doc/reference/lexical_analysis.rst

index 44d99b438c1ba73f0a9de44a2160be10792c9270..cfae01ba97a5550b65ce94ed111ae2fdee74ead5 100644 (file)
@@ -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