File: libkeyword.tex

package info (click to toggle)
python2.5-doc 2.5-4
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 7,816 kB
  • ctags: 2,720
  • sloc: python: 5,817; perl: 3,674; sh: 2,110; makefile: 1,355; xml: 836; lisp: 836; ansic: 719; sed: 2
file content (20 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\section{\module{keyword} ---
         Testing for Python keywords}

\declaremodule{standard}{keyword}
\modulesynopsis{Test whether a string is a keyword in Python.}


This module allows a Python program to determine if a string is a
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}