mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	GH-118095: Handle RETURN_GENERATOR in tier 2 (GH-118180)
				
					
				
			This commit is contained in:
		
							parent
							
								
									10bb90ed49
								
							
						
					
					
						commit
						f180b31e76
					
				
					 16 changed files with 143 additions and 81 deletions
				
			
		|  | @ -304,11 +304,6 @@ mark_stacks(PyCodeObject *code_obj, int len) | |||
|         stacks[i] = UNINITIALIZED; | ||||
|     } | ||||
|     stacks[0] = EMPTY_STACK; | ||||
|     if (code_obj->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) | ||||
|     { | ||||
|         // Generators get sent None while starting:
 | ||||
|         stacks[0] = push_value(stacks[0], Object); | ||||
|     } | ||||
|     int todo = 1; | ||||
|     while (todo) { | ||||
|         todo = 0; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Shannon
						Mark Shannon