]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43770: Refactor PyType_Ready() function (GH-25336)
authorVictor Stinner <vstinner@python.org>
Sun, 11 Apr 2021 21:57:09 +0000 (23:57 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Apr 2021 21:57:09 +0000 (23:57 +0200)
commit53114ffef1d4facf9aa5545e711abbbda66f672a
tree5259e5d70dd3c5ca15628bdfe0e011a553e948e6
parentb38601d49675d90e1ee6faa47f7adaeca992d02d
bpo-43770: Refactor PyType_Ready() function (GH-25336)

* Split PyType_Ready() into sub-functions.
* type_ready_mro() now checks if bases are static types earlier.
* Check tp_name earlier, in type_ready_checks().
* Add _PyType_IsReady() macro to check if a type is ready.
Include/internal/pycore_object.h
Objects/typeobject.c