Issue 17447: Clarify that str.isidentifier doesn't check for reserved keywords.

This commit is contained in:
Raymond Hettinger 2013-03-23 08:21:12 -07:00
parent daa42c778e
commit 378170d5d9
2 changed files with 6 additions and 1 deletions

View file

@ -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)