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 257f5be commit fa8c5edCopy full SHA for fa8c5ed
Python/compile.c
@@ -2440,9 +2440,8 @@ compiler_class(struct compiler *c, stmt_ty s)
2440
/* ultimately generate code for:
2441
<name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
2442
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
+ <func> is a zero arg function/closure created from the class body.
+ It mutates its locals to build the class namespace.
2446
<name> is the class name
2447
<bases> is the positional arguments and *varargs argument
2448
<keywords> is the keyword arguments and **kwds argument
0 commit comments