blob: 0c07cec2fa0c4798b057a6f0fc0473a2eef60240 [file] [log] [blame]
Fred Drake295da241998-08-10 19:42:37 +00001\section{\module{keyword} ---
Fred Drakebbac4321999-02-20 00:14:17 +00002 Testing for Python keywords}
Fred Drakeb91e9341998-07-23 17:59:49 +00003
Fred Drakebbac4321999-02-20 00:14:17 +00004\declaremodule{standard}{keyword}
Fred Drake295da241998-08-10 19:42:37 +00005\modulesynopsis{Test whether a string is a keyword in Python.}
Fred Drakeb91e9341998-07-23 17:59:49 +00006
Fred Drakedb12f341997-10-06 21:39:16 +00007
8This module allows a Python program to determine if a string is a
Fred Drake744f67f2002-01-24 16:38:53 +00009keyword.
Fred Drakedb12f341997-10-06 21:39:16 +000010
11\begin{funcdesc}{iskeyword}{s}
12Return true if \var{s} is a Python keyword.
13\end{funcdesc}
Fred Drake744f67f2002-01-24 16:38:53 +000014
15\begin{datadesc}{kwlist}
16Sequence containing all the keywords defined for the interpreter. If
17any keywords are defined to only be active when particular
18\module{__future__} statements are in effect, these will be included
19as well.
20\end{datadesc}