summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-03-03 05:59:57 (GMT)
committerGitHub <noreply@github.com>2022-03-03 05:59:57 (GMT)
commit1d428bb8c93120d449212e2a815988f28e33b868 (patch)
tree2e3ee13f32766ca4b3994b32f4436249b5450d6f /Python/compile.c
parentcf8aff6319794807aa578215710e6caa4479516f (diff)
downloadcpython-1d428bb8c93120d449212e2a815988f28e33b868.zip
cpython-1d428bb8c93120d449212e2a815988f28e33b868.tar.gz
cpython-1d428bb8c93120d449212e2a815988f28e33b868.tar.bz2
bpo-46831: Update __build_class__ comment (GH-31522)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 81d968b7c30d5b41f3f28b297b7ee5345d569509) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index f426050..28003b6 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2319,9 +2319,8 @@ compiler_class(struct compiler *c, stmt_ty s)
/* ultimately generate code for:
<name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
where:
- <func> is a function/closure created from the class body;
- it has a single argument (__locals__) where the dict
- (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.
<name> is the class name
<bases> is the positional arguments and *varargs argument
<keywords> is the keyword arguments and **kwds argument