summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorИлья Любавский <100635212+lubaskinc0de@users.noreply.github.com>2024-11-29 09:00:50 (GMT)
committerGitHub <noreply@github.com>2024-11-29 09:00:50 (GMT)
commitdd3a87d2a8f8750978359a99de2c5cb2168351d1 (patch)
tree203f9260db5b7233a7a5e6d1ec0b7939c86e2882 /Doc/library
parentb83be9c9718aac42d0d8fc689a829d6594192afa (diff)
downloadcpython-dd3a87d2a8f8750978359a99de2c5cb2168351d1.zip
cpython-dd3a87d2a8f8750978359a99de2c5cb2168351d1.tar.gz
cpython-dd3a87d2a8f8750978359a99de2c5cb2168351d1.tar.bz2
gh-127303: Add docs for token.EXACT_TOKEN_TYPES (#127304)
--------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/token.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/token.rst b/Doc/library/token.rst
index 0cc9ddd..40982f3 100644
--- a/Doc/library/token.rst
+++ b/Doc/library/token.rst
@@ -79,6 +79,13 @@ the :mod:`tokenize` module.
``type_comments=True``.
+.. data:: EXACT_TOKEN_TYPES
+
+ A dictionary mapping the string representation of a token to its numeric code.
+
+ .. versionadded:: 3.8
+
+
.. versionchanged:: 3.5
Added :data:`!AWAIT` and :data:`!ASYNC` tokens.