[New-bugs-announce] [issue46137] Update/change built-in keyword type used in RE example
Vivek Vashist
report at bugs.python.org
Mon Dec 20 05:40:08 EST 2021
New submission from Vivek Vashist <vivekvashist at gmail.com>:
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.
----------
assignee: docs at python
components: Documentation
messages: 408951
nosy: docs at python, vivekvashist
priority: normal
severity: normal
status: open
title: Update/change built-in keyword type used in RE example
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46137>
_______________________________________
More information about the New-bugs-announce
mailing list