mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	more flags which only work for function blocks
This commit is contained in:
		
							parent
							
								
									da9327faf7
								
							
						
					
					
						commit
						12554cb224
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -3794,13 +3794,11 @@ compute_code_flags(struct compiler *c)
 | 
			
		|||
			flags |= CO_NESTED;
 | 
			
		||||
		if (ste->ste_generator)
 | 
			
		||||
			flags |= CO_GENERATOR;
 | 
			
		||||
		if (ste->ste_varargs)
 | 
			
		||||
			flags |= CO_VARARGS;
 | 
			
		||||
		if (ste->ste_varkeywords)
 | 
			
		||||
			flags |= CO_VARKEYWORDS;
 | 
			
		||||
	}
 | 
			
		||||
	if (ste->ste_varargs)
 | 
			
		||||
		flags |= CO_VARARGS;
 | 
			
		||||
	if (ste->ste_varkeywords)
 | 
			
		||||
		flags |= CO_VARKEYWORDS;
 | 
			
		||||
	if (ste->ste_generator)
 | 
			
		||||
		flags |= CO_GENERATOR;
 | 
			
		||||
 | 
			
		||||
	/* (Only) inherit compilerflags in PyCF_MASK */
 | 
			
		||||
	flags |= (c->c_flags->cf_flags & PyCF_MASK);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue