We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3241cba commit 81d968bCopy full SHA for 81d968b
Python/compile.c
@@ -2604,9 +2604,8 @@ compiler_class(struct compiler *c, stmt_ty s)
2604
/* ultimately generate code for:
2605
<name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
2606
where:
2607
- <func> is a function/closure created from the class body;
2608
- it has a single argument (__locals__) where the dict
2609
- (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.
2610
<name> is the class name
2611
<bases> is the positional arguments and *varargs argument
2612
<keywords> is the keyword arguments and **kwds argument
0 commit comments