GNU Info

Info Node: (python2.1-lib.info)keyword

(python2.1-lib.info)keyword


Next: tokenize Prev: token Up: Python Language Services
Enter node , (file) or (file)node

Testing for Python keywords
===========================

Test whether a string is a keyword in Python.

This module allows a Python program to determine if a string is a
keyword.

`iskeyword(s)'
     Return true if S is a Python keyword.

`kwlist'
     Sequence containing all the keywords defined for the interpreter.
     If any keywords are defined to only be active when particular
     `__future__' statements are in effect, these will be included as
     well.


automatically generated by info2www version 1.2.2.9