Skip to content

Commit fa8c5ed

Browse files
bpo-46831: Update __build_class__ comment (GH-31522)
Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit 81d968b) Co-authored-by: Shantanu <[email protected]>
1 parent 257f5be commit fa8c5ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Python/compile.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,9 +2440,8 @@ compiler_class(struct compiler *c, stmt_ty s)
24402440
/* ultimately generate code for:
24412441
<name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
24422442
where:
2443-
<func> is a function/closure created from the class body;
2444-
it has a single argument (__locals__) where the dict
2445-
(or MutableSequence) representing the locals is passed
2443+
<func> is a zero arg function/closure created from the class body.
2444+
It mutates its locals to build the class namespace.
24462445
<name> is the class name
24472446
<bases> is the positional arguments and *varargs argument
24482447
<keywords> is the keyword arguments and **kwds argument

0 commit comments

Comments
 (0)