bpo-46831: Update __build_class__ comment (#31522)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Shantanu 2022-03-02 21:32:57 -08:00 committed by GitHub
parent 3241cba4ec
commit 81d968b7c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2604,9 +2604,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