mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			582 B
		
	
	
	
		
			TeX
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			582 B
		
	
	
	
		
			TeX
		
	
	
	
	
	
\section{\module{keyword} ---
 | 
						|
         Testing for Python keywords}
 | 
						|
 | 
						|
\declaremodule{standard}{keyword}
 | 
						|
\modulesynopsis{Test whether a string is a keyword in Python.}
 | 
						|
 | 
						|
 | 
						|
This module allows a Python program to determine if a string is a
 | 
						|
keyword.
 | 
						|
 | 
						|
\begin{funcdesc}{iskeyword}{s}
 | 
						|
Return true if \var{s} is a Python keyword.
 | 
						|
\end{funcdesc}
 | 
						|
 | 
						|
\begin{datadesc}{kwlist}
 | 
						|
Sequence containing all the keywords defined for the interpreter.  If
 | 
						|
any keywords are defined to only be active when particular
 | 
						|
\module{__future__} statements are in effect, these will be included
 | 
						|
as well.
 | 
						|
\end{datadesc}
 |