summaryrefslogtreecommitdiff
path: root/Doc/library/token.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598)Shantanu2020-02-281-1/+1
|
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-121-3/+3
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086)Guido van Rossum2019-03-071-0/+3
| | | | | | | This adds a `feature_version` flag to `ast.parse()` (documented) and `compile()` (hidden) that allow tweaking the parser to support older versions of the grammar. In particular if `feature_version` is 5 or 6, the hacks for the `async` and `await` keyword from PEP 492 are reinstated. (For 7 or higher, these are unconditionally treated as keywords, but they are still special tokens rather than `NAME` tokens that the parser driver recognizes.) https://bugs.python.org/issue35975
* bpo-35766: Merge typed_ast back into CPython (GH-11645)Guido van Rossum2019-01-311-0/+10
|
* bpo-30455: Generate all token related code and docs from Grammar/Tokens. ↵Serhiy Storchaka2018-12-221-58/+1
| | | | | | | | | | | | | | | | | | | (GH-10370) "Include/token.h", "Lib/token.py" (containing now some data moved from "Lib/tokenize.py") and new files "Parser/token.c" (containing the code moved from "Parser/tokenizer.c") and "Doc/library/token-list.inc" (included in "Doc/library/token.rst") are now generated from "Grammar/Tokens" by "Tools/scripts/generate_token.py". The script overwrites files only if needed and can be used on the read-only sources tree. "Lib/symbol.py" is now generated by "Tools/scripts/generate_symbol_py.py" instead of been executable itself. Added new make targets "regen-token" and "regen-symbol" which are now dependencies of "regen-all". The documentation contains now strings for operators and punctuation tokens.
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-051-5/+5
| | | Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
* bpo-25324: Move the description of tokenize tokens to token.rst. (#1911)Serhiy Storchaka2017-06-061-11/+30
|
* bpo-25324: copy tok_name before changing it (#1608)Albert-Jan Nijburg2017-05-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | * add test to check if were modifying token * copy list so import tokenize doesnt have side effects on token * shorten line * add tokenize tokens to token.h to get them to show up in token * move ERRORTOKEN back to its previous location, and fix nitpick * copy comments from token.h automatically * fix whitespace and make more pythonic * change to fix comments from @haypo * update token.rst and Misc/NEWS * change wording * some more wording changes
* Issue #23322: Remove outdated reference to an example in parser docsBerker Peksag2016-08-081-7/+0
| | | | Initial patch by Sahil Chelaramani.
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+1
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* docs: Document ASYNC/AWAIT tokens (issue #25580)Yury Selivanov2015-12-171-0/+6
| | | | Initial patch by SilentGhost
* PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-091-0/+1
|
* Issue #13632: Update token documentation to reflect actual token typesMeador Inge2011-12-231-1/+2
|
* More source links.Raymond Hettinger2011-01-271-0/+3
|
* #8968: add actual name of token constants.Georg Brandl2010-10-171-2/+61
|
* Last round of adapting style of documenting argument default values.Georg Brandl2009-09-161-1/+0
|
* Move the 3k reST doc tree in place.Georg Brandl2007-08-151-0/+47