mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Backport PEP 3110's new 'except' syntax to 2.6.
This commit is contained in:
		
							parent
							
								
									6eb7bede72
								
							
						
					
					
						commit
						6290305e67
					
				
					 6 changed files with 12 additions and 7 deletions
				
			
		|  | @ -930,7 +930,7 @@ def com_try_except_finally(self, nodelist): | |||
|         for i in range(3, len(nodelist), 3): | ||||
|             node = nodelist[i] | ||||
|             if node[0] == symbol.except_clause: | ||||
|                 # except_clause: 'except' [expr [',' expr]] */ | ||||
|                 # except_clause: 'except' [expr [(',' | 'as') expr]] */ | ||||
|                 if len(node) > 2: | ||||
|                     expr1 = self.com_node(node[2]) | ||||
|                     if len(node) > 4: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Collin Winter
						Collin Winter