|  |  | Python Library Reference |  |  |

Next: 3.18 tokenize Up: 3. Python Services Previous: 3.16 token

# 3.17 `keyword` -- Testing for Python keywords

This module allows a Python program to determine if a string is a keyword. A single function is provided:

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

|  |  | Python Library Reference |  |  |

Next: 3.18 tokenize Up: 3. Python Services Previous: 3.16 token