New submission from Shantanu <hauntsani...@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@python components: Documentation messages: 413768 nosy: docs@python, hauntsaninja priority: normal severity: normal status: open title: Outdated comment for __build_class__ in compile.c _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46831> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com