mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add keyword.kwlist to the public API.
This commit is contained in:
parent
db2d3d1b3a
commit
744f67fb62
1 changed files with 8 additions and 1 deletions
|
|
@ -6,8 +6,15 @@
|
|||
|
||||
|
||||
This module allows a Python program to determine if a string is a
|
||||
keyword. A single function is provided:
|
||||
keyword.
|
||||
|
||||
\begin{funcdesc}{iskeyword}{s}
|
||||
Return true if \var{s} is a Python keyword.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{datadesc}{kwlist}
|
||||
Sequence containing all the keywords defined for the interpreter. If
|
||||
any keywords are defined to only be active when particular
|
||||
\module{__future__} statements are in effect, these will be included
|
||||
as well.
|
||||
\end{datadesc}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue