From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Thu, 3 Mar 2022 05:32:57 +0000 (-0800) Subject: bpo-46831: Update __build_class__ comment (#31522) X-Git-Tag: v3.11.0a6~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81d968b7c30d5b41f3f28b297b7ee5345d569509;p=thirdparty%2FPython%2Fcpython.git bpo-46831: Update __build_class__ comment (#31522) Co-authored-by: Jelle Zijlstra --- diff --git a/Python/compile.c b/Python/compile.c index 3609ff8f4fb9..14595d9b576f 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2604,9 +2604,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