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.

Author vivekvashist
Recipients docs@python, vivekvashist
Date 2021-12-20.10:40:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639996808.31.0.346495346407.issue46137@roundup.psfhosted.org>
In-reply-to
Content
Link: https://docs.python.org/3/library/re.html#writing-a-tokenizer

Noticed that built-in type() class is being used inside the Tokenizer example:

class Token(NamedTuple):
    type: str
    value: str
    line: int
    column: int

Should this attribute be updated/renamed to kind or name perhaps ? 

Happy to submit a PR once the change/replacement is confirmed.
History
Date User Action Args
2021-12-20 10:40:08vivekvashistsetrecipients: + vivekvashist, docs@python
2021-12-20 10:40:08vivekvashistsetmessageid: <1639996808.31.0.346495346407.issue46137@roundup.psfhosted.org>
2021-12-20 10:40:08vivekvashistlinkissue46137 messages
2021-12-20 10:40:08vivekvashistcreate