[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>:

https://github.com/python/cpython/blob/cf345e945f48f54785799390c2e92c5310847bd4/Python/compile.c#L2537
```
    /* 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` 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>
<https://bugs.python.org/issue46831>
_______________________________________


More information about the New-bugs-announce mailing list