[New-bugs-announce] [issue46831] Outdated comment for __build_class__ in compile.c

Shantanu report at bugs.python.org
Tue Feb 22 22:31:57 EST 2022

New submission from Shantanu <hauntsaninja at gmail.com>:

    /* ultimately generate code for:
         <name> = __build_class__(<func>, <name>, *<bases>, **<keywords>)
         <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` currently takes zero arguments. This was changed in https://github.com/python/cpython/commit/e8e14591ebb729b4fa19626ce245fa0811cf6f32 in Python 3.4

assignee: docs at python
components: Documentation
messages: 413768
nosy: docs at python, hauntsaninja
priority: normal
severity: normal
status: open
title: Outdated comment for __build_class__ in compile.c

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list