mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue 17447: Clarify that str.isidentifier doesn't check for reserved keywords.
This commit is contained in:
parent
daa42c778e
commit
378170d5d9
2 changed files with 6 additions and 1 deletions
|
@ -11493,7 +11493,10 @@ PyDoc_STRVAR(isidentifier__doc__,
|
|||
"S.isidentifier() -> bool\n\
|
||||
\n\
|
||||
Return True if S is a valid identifier according\n\
|
||||
to the language definition.");
|
||||
to the language definition.\n\
|
||||
\n\
|
||||
Use keyword.iskeyword() to test for reserved identifiers\n\
|
||||
such as \"def\" and \"class\".\n");
|
||||
|
||||
static PyObject*
|
||||
unicode_isidentifier(PyObject *self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue