mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Use Tim's suggestion to fix
[ 708901 ] Lineno calculation sometimes broken A one line patch to compile.c and a rather-more-than-one-line patch to test_dis. Hey ho. Possibly a backport candidate -- tho' lnotab is less used in 2.2...
This commit is contained in:
		
							parent
							
								
									58ee2af48e
								
							
						
					
					
						commit
						26848a34d1
					
				
					 2 changed files with 52 additions and 15 deletions
				
			
		|  | @ -3366,7 +3366,7 @@ com_for_stmt(struct compiling *c, node *n) | |||
| 	com_node(c, CHILD(n, 3)); | ||||
| 	com_addbyte(c, GET_ITER); | ||||
| 	c->c_begin = c->c_nexti; | ||||
| 	com_set_lineno(c, n->n_lineno); | ||||
| 	com_set_lineno(c, c->c_last_line); | ||||
| 	com_addfwref(c, FOR_ITER, &anchor); | ||||
| 	com_push(c, 1); | ||||
| 	com_assign(c, CHILD(n, 1), OP_ASSIGN, NULL); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael W. Hudson
						Michael W. Hudson