mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Fix SF bug #479186: compiler generates bad code for "del"
Fix by Neil Schemenauer. Visit the Subscript node when trying to find the operation for a statement. XXX Not sure if there are other nodes that should be visited.
This commit is contained in:
		
							parent
							
								
									41c8321252
								
							
						
					
					
						commit
						6383c2d1a6
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -1333,6 +1333,7 @@ def visitAssName(self, node): | |||
|         elif self.op != node.flags: | ||||
|             raise ValueError, "mixed ops in stmt" | ||||
|     visitAssAttr = visitAssName | ||||
|     visitSubscript = visitAssName | ||||
| 
 | ||||
| class Delegator: | ||||
|     """Base class to support delegation for augmented assignment nodes | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Hylton
						Jeremy Hylton