From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 3 Mar 2022 06:02:59 +0000 (-0800) Subject: bpo-46831: Update __build_class__ comment (GH-31522) X-Git-Tag: v3.10.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8c5ed9c80507670c756aa83ea872b8a92bcd1c;p=thirdparty%2FPython%2Fcpython.git bpo-46831: Update __build_class__ comment (GH-31522) Co-authored-by: Jelle Zijlstra (cherry picked from commit 81d968b7c30d5b41f3f28b297b7ee5345d569509) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> --- diff --git a/Python/compile.c b/Python/compile.c index 1416eb119c9e..f012406c0669 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2440,9 +2440,8 @@ compiler_class(struct compiler *c, stmt_ty s) /* ultimately generate code for: = __build_class__(, , *, **) where: - 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 + is a zero arg function/closure created from the class body. + It mutates its locals to build the class namespace. is the class name is the positional arguments and *varargs argument is the keyword arguments and **kwds argument