[docs] [issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

Sanyam Khurana report at bugs.python.org
Mon Mar 12 13:49:14 EDT 2018

Sanyam Khurana <sanyam.khurana01 at gmail.com> added the comment:

Carol, Yes, I've raised a PR.

Currently, I've updated the docs for `str.isidentifier` clarifying the usage of `keyword.iskeyword`

For updating the docstring of `keyword.iskeyword`, I saw that `Lib/Keyword.py` defines this on line 55: `iskeyword = frozenset(kwlist).__contains__`

The docstring of the file says that it is automatically generated from `graminit.c`. I observed that file and have no clue on how to proceed to have the doc string updated. Can someone provide me a pointer on this please?

keywords:  -patch
stage: patch review -> needs patch

Python tracker <report at bugs.python.org>

More information about the docs mailing list