mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
merge
This commit is contained in:
commit
51612fd803
2 changed files with 6 additions and 1 deletions
|
@ -1627,6 +1627,8 @@ expression support in the :mod:`re` module).
|
||||||
Return true if the string is a valid identifier according to the language
|
Return true if the string is a valid identifier according to the language
|
||||||
definition, section :ref:`identifiers`.
|
definition, section :ref:`identifiers`.
|
||||||
|
|
||||||
|
Use :func:`keyword.iskeyword` to test for reserved identifiers such as
|
||||||
|
:keyword:`def` and :keyword:`class`.
|
||||||
|
|
||||||
.. method:: str.islower()
|
.. method:: str.islower()
|
||||||
|
|
||||||
|
|
|
@ -11369,7 +11369,10 @@ PyDoc_STRVAR(isidentifier__doc__,
|
||||||
"S.isidentifier() -> bool\n\
|
"S.isidentifier() -> bool\n\
|
||||||
\n\
|
\n\
|
||||||
Return True if S is a valid identifier according\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*
|
static PyObject*
|
||||||
unicode_isidentifier(PyObject *self)
|
unicode_isidentifier(PyObject *self)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue