mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	jcompile(): inherit the CO_GENERATOR_ALLOWED flag from the 'base'
compiling struct.
This commit is contained in:
		
							parent
							
								
									a1b3a47406
								
							
						
					
					
						commit
						e16c7aee4b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -3945,6 +3945,7 @@ jcompile(node *n, char *filename, struct compiling *base, | |||
| 		if (base->c_nested  | ||||
| 		    || (sc.c_symtable->st_cur->ste_type == TYPE_FUNCTION)) | ||||
| 			sc.c_nested = 1; | ||||
| 		sc.c_flags |= base->c_flags & CO_GENERATOR_ALLOWED; | ||||
| 	} else { | ||||
| 		sc.c_private = NULL; | ||||
| 		sc.c_future = PyNode_Future(n, filename); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum