blob: a4bfa501bfe580b85a574ac528bfabd2386c9fff [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001:mod:`keyword` --- Testing for Python keywords
2==============================================
3
4.. module:: keyword
5 :synopsis: Test whether a string is a keyword in Python.
6
7
8This module allows a Python program to determine if a string is a keyword.
9
10
11.. function:: iskeyword(s)
12
13 Return true if *s* is a Python keyword.
14
15
16.. data:: kwlist
17
18 Sequence containing all the keywords defined for the interpreter. If any
19 keywords are defined to only be active when particular :mod:`__future__`
20 statements are in effect, these will be included as well.
21