diff options
| author | Victor Stinner <vstinner@python.org> | 2021-04-21 22:10:16 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-21 22:10:16 (GMT) |
| commit | 760da626ff4124e1344fd8b7dbeb83b2c4b7c12c (patch) | |
| tree | ca3bf154f0d0b0aefc2d35710a0b05bba09ada9b /Python/ast.c | |
| parent | d4aaa34798f0dd8402f412e2aa9d6fa2d6cff5fa (diff) | |
| download | cpython-760da626ff4124e1344fd8b7dbeb83b2c4b7c12c.zip cpython-760da626ff4124e1344fd8b7dbeb83b2c4b7c12c.tar.gz cpython-760da626ff4124e1344fd8b7dbeb83b2c4b7c12c.tar.bz2 | |
bpo-40137: Optimize _PyType_GetModuleByDef() loop (GH-25505)
PyType_Ready() now ensures that a type MRO cannot be empty.
_PyType_GetModuleByDef() no longer checks "i < PyTuple_GET_SIZE(mro)"
at the first loop iteration to optimize the most common case, when
the argument is the defining class.
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions
