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 301d078 commit 299c397Copy full SHA for 299c397
Python/compile.c
@@ -2319,9 +2319,8 @@ compiler_class(struct compiler *c, stmt_ty s)
2319
/* ultimately generate code for:
2320
<name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
2321
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
+ <func> is a zero arg function/closure created from the class body.
+ It mutates its locals to build the class namespace.
2325
<name> is the class name
2326
<bases> is the positional arguments and *varargs argument
2327
<keywords> is the keyword arguments and **kwds argument
0 commit comments