Store actual ints, not pointers to them in the interpreter state. (GH-29274)

This commit is contained in:
Mark Shannon 2021-10-28 17:35:43 +01:00 committed by GitHub
parent 13d9205f40
commit 4fc68560ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 21 deletions

View file

@ -659,9 +659,7 @@ pycore_init_singletons(PyInterpreterState *interp)
{
PyStatus status;
if (_PyLong_Init(interp) < 0) {
return _PyStatus_ERR("can't init longs");
}
_PyLong_Init(interp);
if (_Py_IsMainInterpreter(interp)) {
_PyFloat_Init();