mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
Issue #18520: Add a new PyStructSequence_InitType2() function, same than
PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error
This commit is contained in:
parent
2a545099f7
commit
1c8f059019
17 changed files with 117 additions and 54 deletions
|
@ -328,7 +328,8 @@ _Py_InitializeEx_Private(int install_sigs, int install_importlib)
|
|||
if (!PyByteArray_Init())
|
||||
Py_FatalError("Py_Initialize: can't init bytearray");
|
||||
|
||||
_PyFloat_Init();
|
||||
if (!_PyFloat_Init())
|
||||
Py_FatalError("Py_Initialize: can't init float");
|
||||
|
||||
interp->modules = PyDict_New();
|
||||
if (interp->modules == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue