This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Update token documentation to reflect actual token types
Type: behavior Stage: resolved
Components: Documentation, Library (Lib) Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, georg.brandl, meador.inge, python-dev, terry.reedy
Priority: normal Keywords: easy, patch

Created on 2011-12-19 05:29 by meador.inge, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
token-docs-v0.patch meador.inge, 2011-12-19 05:29 review
Messages (4)
msg149818 - (view) Author: Meador Inge (meador.inge) * (Python committer) Date: 2011-12-19 05:29
The current token documentation is out of date with respect to the currently available token types:

Python 3.3.0a0 (default:766136049b44+, Dec 18 2011, 21:54:42) 
[GCC 4.6.2 20111027 (Red Hat 4.6.2-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import token
>>> token.BACKQUOTE
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'BACKQUOTE'
>>> token.RARROW
51
>>> token.ELLIPSIS
52

The attached patch fixes this.  OK?
msg150201 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-12-24 01:42
Looks good to me.
help(token) already has the corrections. - BACKQUOTE, + RARROW, ELLIPSIS
msg150211 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-12-24 05:14
New changeset b7d099e8c136 by Meador Inge in branch '3.2':
Issue #13632: Update token documentation to reflect actual token types
http://hg.python.org/cpython/rev/b7d099e8c136

New changeset 1461327e63b5 by Meador Inge in branch 'default':
Issue #13632: Update token documentation to reflect actual token types
http://hg.python.org/cpython/rev/1461327e63b5
msg150212 - (view) Author: Meador Inge (meador.inge) * (Python committer) Date: 2011-12-24 05:18
Committed.  Thanks for the review Terry.
History
Date User Action Args
2022-04-11 14:57:24adminsetgithub: 57841
2011-12-24 05:18:23meador.ingesetstatus: open -> closed
resolution: fixed
messages: + msg150212

stage: patch review -> resolved
2011-12-24 05:14:31python-devsetnosy: + python-dev
messages: + msg150211
2011-12-24 01:42:52terry.reedysetpriority: low -> normal
2011-12-24 01:42:25terry.reedysetnosy: + terry.reedy
messages: + msg150201
2011-12-19 05:29:00meador.ingecreate