| 
									
										
										
										
											1998-08-10 19:42:37 +00:00
										 |  |  | \section{\module{keyword} --- | 
					
						
							| 
									
										
										
										
											1999-02-20 00:14:17 +00:00
										 |  |  |          Testing for Python keywords} | 
					
						
							| 
									
										
										
										
											1998-07-23 17:59:49 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-02-20 00:14:17 +00:00
										 |  |  | \declaremodule{standard}{keyword} | 
					
						
							| 
									
										
										
										
											1998-08-10 19:42:37 +00:00
										 |  |  | \modulesynopsis{Test whether a string is a keyword in Python.} | 
					
						
							| 
									
										
										
										
											1998-07-23 17:59:49 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1997-10-06 21:39:16 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This module allows a Python program to determine if a string is a | 
					
						
							| 
									
										
										
										
											2002-01-24 16:38:53 +00:00
										 |  |  | keyword. | 
					
						
							| 
									
										
										
										
											1997-10-06 21:39:16 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \begin{funcdesc}{iskeyword}{s} | 
					
						
							|  |  |  | Return true if \var{s} is a Python keyword. | 
					
						
							|  |  |  | \end{funcdesc} | 
					
						
							| 
									
										
										
										
											2002-01-24 16:38:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \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} |