mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-44297: Fix missing line number in generator expressions (GH-26801)
* Make sure that line number is set when entering comprehension scope in compiler.
This commit is contained in:
		
							parent
							
								
									5d2b3a0d68
								
							
						
					
					
						commit
						82e5c28af7
					
				
					 4 changed files with 972 additions and 953 deletions
				
			
		|  | @ -4900,6 +4900,7 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type, | |||
|     { | ||||
|         goto error; | ||||
|     } | ||||
|     SET_LOC(c, e); | ||||
| 
 | ||||
|     is_async_generator = c->u->u_ste->ste_coroutine; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Shannon
						Mark Shannon