Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b4bfb commit 276c371Copy full SHA for 276c371
2 files changed
Misc/NEWS
@@ -13,6 +13,8 @@ What's New in Python 3.0 release candiate 3?
13
Core and Builtins
14
-----------------
15
16
+- Issue #3327: Don't overallocate in the modules_by_index list.
17
+
18
- Issue #1721812: Binary set operations and copy() returned the input type
19
instead of the appropriate base type. This was incorrect because set
20
subclasses would be created without their __init__() method being called.
Python/pystate.c
@@ -234,7 +234,7 @@ _PyState_AddModule(PyObject* module, struct PyModuleDef* def)
234
if (!def)
235
return -1;
236
if (!state->modules_by_index) {
237
- state->modules_by_index = PyList_New(20);
+ state->modules_by_index = PyList_New(0);
238
if (!state->modules_by_index)
239
240
}
0 commit comments