mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Closes #14250: regex.flags has not only explicit flags but also implicit flags and those from the pattern
This commit is contained in:
		
							parent
							
								
									557a3ec9bb
								
							
						
					
					
						commit
						3a19e542ff
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -784,8 +784,9 @@ attributes:
 | 
			
		|||
 | 
			
		||||
.. attribute:: regex.flags
 | 
			
		||||
 | 
			
		||||
   The flags argument used when the RE object was compiled, or ``0`` if no flags
 | 
			
		||||
   were provided.
 | 
			
		||||
   The regex matching flags.  This is a combination of the flags given to
 | 
			
		||||
   :func:`.compile`, any ``(?...)`` inline flags in the pattern, and implicit
 | 
			
		||||
   flags such as :data:`UNICODE` if the pattern is a Unicode string.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
.. attribute:: regex.groups
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue