| 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 |
|
|---|
| 8 | This module allows a Python program to determine if a string is a
|
|---|
| 9 | keyword.
|
|---|
| 10 |
|
|---|
| 11 | \begin{funcdesc}{iskeyword}{s}
|
|---|
| 12 | Return true if \var{s} is a Python keyword.
|
|---|
| 13 | \end{funcdesc}
|
|---|
| 14 |
|
|---|
| 15 | \begin{datadesc}{kwlist}
|
|---|
| 16 | Sequence containing all the keywords defined for the interpreter. If
|
|---|
| 17 | any keywords are defined to only be active when particular
|
|---|
| 18 | \module{__future__} statements are in effect, these will be included
|
|---|
| 19 | as well.
|
|---|
| 20 | \end{datadesc}
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.