mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	[3.11] GH-95921: Fix positions for some chained comparisons (GH-96968) (GH-96973)
(cherry picked from commit dfc73b5724)
Automerge-Triggered-By: GH:brandtbucher
			
			
This commit is contained in:
		
							parent
							
								
									32d80decbf
								
							
						
					
					
						commit
						0e61d2b557
					
				
					 3 changed files with 29 additions and 0 deletions
				
			
		|  | @ -2930,6 +2930,7 @@ compiler_jump_if(struct compiler *c, expr_ty e, basicblock *next, int cond) | |||
|         return 1; | ||||
|     } | ||||
|     case Compare_kind: { | ||||
|         SET_LOC(c, e); | ||||
|         Py_ssize_t i, n = asdl_seq_LEN(e->v.Compare.ops) - 1; | ||||
|         if (n > 0) { | ||||
|             if (!check_compare(c, e)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brandt Bucher
						Brandt Bucher