source: trunk/essentials/dev-lang/python/Doc/lib/libkeyword.tex@ 3368

Last change on this file since 3368 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 582 bytes
Line 
1\section{\module{keyword} ---
2 Testing for Python keywords}
3
4\declaremodule{standard}{keyword}
5\modulesynopsis{Test whether a string is a keyword in Python.}
6
7
8This module allows a Python program to determine if a string is a
9keyword.
10
11\begin{funcdesc}{iskeyword}{s}
12Return true if \var{s} is a Python keyword.
13\end{funcdesc}
14
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}
Note: See TracBrowser for help on using the repository browser.