gh-132042: Remove resolve_slotdups() to speedup class creation (#132156)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
Sergey Miryanov 2025-10-03 14:58:00 +05:00 committed by GitHub
parent aa99a7c70c
commit e6e376a760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 95 additions and 61 deletions

View file

@ -836,6 +836,10 @@ pycore_init_builtins(PyThreadState *tstate)
}
interp->callable_cache.object__getattribute__ = object__getattribute__;
if (_PyType_InitSlotDefs(interp) < 0) {
return _PyStatus_ERR("failed to init slotdefs");
}
if (_PyBuiltins_AddExceptions(bimod) < 0) {
return _PyStatus_ERR("failed to add exceptions to builtins");
}