Movatterモバイル変換


[0]ホーム

URL:


Navigation

31.6.keyword — Testing for Python keywords

Source code:Lib/keyword.py


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

keyword.iskeyword(s)

Return true ifs is a Python keyword.

keyword.kwlist

Sequence containing all the keywords defined for the interpreter. If anykeywords are defined to only be active when particular__future__statements are in effect, these will be included as well.

Previous topic

31.5.token — Constants used with Python parse trees

Next topic

31.7.tokenize — Tokenizer for Python source

This Page

Quick search

Enter search terms or a module, class or function name.

Navigation

©Copyright 1990-2017, Python Software Foundation.
The Python Software Foundation is a non-profit corporation.Please donate.
Last updated on Sep 19, 2017.Found a bug?
Created usingSphinx 1.2.

[8]ページ先頭

©2009-2025 Movatter.jp