From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/python~3.12/library%2Fkeyword.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 devdocs/python~3.12/library%2Fkeyword.html (limited to 'devdocs/python~3.12/library%2Fkeyword.html') diff --git a/devdocs/python~3.12/library%2Fkeyword.html b/devdocs/python~3.12/library%2Fkeyword.html new file mode 100644 index 00000000..81fc8059 --- /dev/null +++ b/devdocs/python~3.12/library%2Fkeyword.html @@ -0,0 +1,18 @@ +

keyword — Testing for Python keywords

Source code: Lib/keyword.py

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

+keyword.iskeyword(s)
+

Return True if s is a Python keyword.

+
+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.

+
+keyword.issoftkeyword(s)
+

Return True if s is a Python soft keyword.

New in version 3.9.

+
+keyword.softkwlist
+

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

New in version 3.9.

+
+

+ © 2001–2023 Python Software Foundation
Licensed under the PSF License.
+ https://docs.python.org/3.12/library/keyword.html +

+
-- cgit v1.2.3