]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43770: Reorder type_ready() (GH-25373)
authorVictor Stinner <vstinner@python.org>
Tue, 13 Apr 2021 11:33:31 +0000 (13:33 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Apr 2021 11:33:31 +0000 (13:33 +0200)
commit65f058eb081c9e1fe44115d1ac7966067e3650c7
tree280959d84c71bf4c20018b312b7b14b221473c83
parent54db51c9114ac49030832f5134979ca866ffd21c
bpo-43770: Reorder type_ready() (GH-25373)

Add type_ready_create_dict() sub-function.

* Start with type_ready_create_dict().
* Call type_ready_mro() earlier, before type_ready_add_attrs().
* Call type_ready_inherit_special() earlier, in type_ready_inherit().
Objects/typeobject.c