Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 624af829a7d930d29f359c3d8a2408efc36b34e8 authored by Trent Mick on 19 June 2006, 23:57:41 UTC
[ 1295808 ] expat symbols should be namespaced in pyexpat
Tip revision: 624af82
libkeyword.tex
\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}
back to top