]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123579: Document exclamation token (#123612)
authorShaygan Hooshyari <sh.hooshyari@gmail.com>
Tue, 3 Sep 2024 14:49:38 +0000 (07:49 -0700)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2024 14:49:38 +0000 (16:49 +0200)
Doc/reference/lexical_analysis.rst

index 635d36537a0678e283843dda3a5c909a2d061cb2..c2f5f145bb22b29809fc37b7898fae5db4ee1cf1 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