mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Reformat code block to make it easier to read (#106965)
This commit is contained in:
		
							parent
							
								
									4a1026d764
								
							
						
					
					
						commit
						ed491d9f78
					
				
					 1 changed files with 14 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to
 | 
			
		|||
other clauses and eventually to be reraised. ::
 | 
			
		||||
 | 
			
		||||
   >>> def f():
 | 
			
		||||
   ...     raise ExceptionGroup("group1",
 | 
			
		||||
   ...                          [OSError(1),
 | 
			
		||||
   ...                           SystemError(2),
 | 
			
		||||
   ...                           ExceptionGroup("group2",
 | 
			
		||||
   ...                                          [OSError(3), RecursionError(4)])])
 | 
			
		||||
   ...     raise ExceptionGroup(
 | 
			
		||||
   ...         "group1",
 | 
			
		||||
   ...         [
 | 
			
		||||
   ...             OSError(1),
 | 
			
		||||
   ...             SystemError(2),
 | 
			
		||||
   ...             ExceptionGroup(
 | 
			
		||||
   ...                 "group2",
 | 
			
		||||
   ...                 [
 | 
			
		||||
   ...                     OSError(3),
 | 
			
		||||
   ...                     RecursionError(4)
 | 
			
		||||
   ...                 ]
 | 
			
		||||
   ...             )
 | 
			
		||||
   ...         ]
 | 
			
		||||
   ...     )
 | 
			
		||||
   ...
 | 
			
		||||
   >>> try:
 | 
			
		||||
   ...     f()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue