Skip to content

Commit 299c397

Browse files
miss-islingtonhauntsaninja
authored andcommitted
bpo-46831: Update __build_class__ comment (pythonGH-31522)
Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit 81d968b) Co-authored-by: Shantanu <[email protected]>
1 parent 301d078 commit 299c397

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
@@ -2319,9 +2319,8 @@ compiler_class(struct compiler *c, stmt_ty s)
23192319
/* ultimately generate code for:
23202320
<name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
23212321
where:
2322-
<func> is a function/closure created from the class body;
2323-
it has a single argument (__locals__) where the dict
2324-
(or MutableSequence) representing the locals is passed
2322+
<func> is a zero arg function/closure created from the class body.
2323+
It mutates its locals to build the class namespace.
23252324
<name> is the class name
23262325
<bases> is the positional arguments and *varargs argument
23272326
<keywords> is the keyword arguments and **kwds argument

0 commit comments

Comments
 (0)