diff options
author | Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com> | 2018-10-08 06:53:32 (GMT) |
---|---|---|
committer | Carol Willing <carolcode@willingconsulting.com> | 2018-10-08 06:53:32 (GMT) |
commit | ffc5a14d00db984c8e72c7b67da8a493e17e2c14 (patch) | |
tree | 9baa64994bc84ab4351d4bbabbda67105a47ccbb /Objects/clinic | |
parent | 656d52dbfde3223cd2a3525d652b6cccb02fa991 (diff) | |
download | cpython-ffc5a14d00db984c8e72c7b67da8a493e17e2c14.zip cpython-ffc5a14d00db984c8e72c7b67da8a493e17e2c14.tar.gz cpython-ffc5a14d00db984c8e72c7b67da8a493e17e2c14.tar.bz2 |
bpo-33014: Clarify str.isidentifier docstring (GH-6088)
* bpo-33014: Clarify str.isidentifier docstring
* bpo-33014: Add code example in isidentifier documentation
Diffstat (limited to 'Objects/clinic')
-rw-r--r-- | Objects/clinic/unicodeobject.c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/clinic/unicodeobject.c.h b/Objects/clinic/unicodeobject.c.h index 8072516..cf5f13c 100644 --- a/Objects/clinic/unicodeobject.c.h +++ b/Objects/clinic/unicodeobject.c.h @@ -381,8 +381,8 @@ PyDoc_STRVAR(unicode_isidentifier__doc__, "\n" "Return True if the string is a valid Python identifier, False otherwise.\n" "\n" -"Use keyword.iskeyword() to test for reserved identifiers such as \"def\" and\n" -"\"class\"."); +"Call keyword.iskeyword(s) to test whether string s is a reserved identifier,\n" +"such as \"def\" or \"class"); #define UNICODE_ISIDENTIFIER_METHODDEF \ {"isidentifier", (PyCFunction)unicode_isidentifier, METH_NOARGS, unicode_isidentifier__doc__}, @@ -951,4 +951,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored)) { return unicode_sizeof_impl(self); } -/*[clinic end generated code: output=561c88c912b8fe3b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c9476bf19f13c286 input=a9049054013a1b77]*/ |