| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7d175ca commit 91399c3
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,6 +79,13 @@ the :mod:`tokenize` module. | |||
| 79 | 79 | ``type_comments=True``. | |
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | + .. data:: EXACT_TOKEN_TYPES | ||
| 83 | + | ||
| 84 | + A dictionary mapping the string representation of a token to its numeric code. | ||
| 85 | + | ||
| 86 | + .. versionadded:: 3.8 | ||
| 87 | + | ||
| 88 | + | ||
| 82 | 89 | .. versionchanged:: 3.5 | |
| 83 | 90 | Added :data:`AWAIT` and :data:`ASYNC` tokens. | |
| 84 | 91 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1139,6 +1139,7 @@ Mark Lutz | |||
| 1139 | 1139 | Taras Lyapun | |
| 1140 | 1140 | Jim Lynch | |
| 1141 | 1141 | Mikael Lyngvig | |
| 1142 | + Ilya Lyubavski | ||
| 1142 | 1143 | Jeff MacDonald | |
| 1143 | 1144 | John Machin | |
| 1144 | 1145 | Andrew I MacIntyre | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Publicly expose :data:`~token.EXACT_TOKEN_TYPES` in :attr:`!token.__all__`. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,7 +226,8 @@ def make_rst(infile, outfile='Doc/library/token-list.inc'): | |||
| 226 | 226 | # {AUTO_GENERATED_BY_SCRIPT} | |
| 227 | 227 | ''' | |
| 228 | 228 | token_py_template += ''' | |
| 229 | - __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF'] | ||
| 229 | + __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF', | ||
| 230 | + 'EXACT_TOKEN_TYPES'] | ||
| 230 | 231 | ||
| 231 | 232 | %s | |
| 232 | 233 | N_TOKENS = %d | |
| Back | FazBrowse Home | New Git URL |
0 commit comments