mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 (#111459)
This commit is contained in:
		
							parent
							
								
									970e719a7a
								
							
						
					
					
						commit
						52cc4af6ae
					
				
					 18 changed files with 362 additions and 339 deletions
				
			
		|  | @ -642,7 +642,7 @@ static const _Py_CODEUNIT _Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS[] = { | |||
|     { .op.code = INTERPRETER_EXIT, .op.arg = 0 },  /* reached on return */ | ||||
|     { .op.code = NOP, .op.arg = 0 }, | ||||
|     { .op.code = INTERPRETER_EXIT, .op.arg = 0 },  /* reached on yield */ | ||||
|     { .op.code = RESUME, .op.arg = RESUME_AT_FUNC_START } | ||||
|     { .op.code = RESUME, .op.arg = RESUME_OPARG_DEPTH1_MASK | RESUME_AT_FUNC_START } | ||||
| }; | ||||
| 
 | ||||
| extern const struct _PyCode_DEF(8) _Py_InitCleanup; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel