mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-46831: Update __build_class__ comment (GH-31522)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 81d968b7c3)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
			
			
This commit is contained in:
		
							parent
							
								
									cf8aff6319
								
							
						
					
					
						commit
						1d428bb8c9
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -2319,9 +2319,8 @@ compiler_class(struct compiler *c, stmt_ty s) | |||
|     /* ultimately generate code for:
 | ||||
|          <name> = __build_class__(<func>, <name>, *<bases>, **<keywords>) | ||||
|        where: | ||||
|          <func> is a function/closure created from the class body; | ||||
|             it has a single argument (__locals__) where the dict | ||||
|             (or MutableSequence) representing the locals is passed | ||||
|          <func> is a zero arg function/closure created from the class body. | ||||
|             It mutates its locals to build the class namespace. | ||||
|          <name> is the class name | ||||
|          <bases> is the positional arguments and *varargs argument | ||||
|          <keywords> is the keyword arguments and **kwds argument | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)