Mercurial > cpython-lru_cache-weakref
diff Python/pystate.c @ 49736:620a34dc10f9
Issue #3327: Don't overallocate in the modules_by_index list.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 17 Nov 2008 16:22:11 +0000 |
| parents | efef5fc45a9a |
| children | d7a62c16505b fdd6484f1210 |
line wrap: on
line diff
--- a/Python/pystate.c Mon Nov 17 16:04:09 2008 +0000 +++ b/Python/pystate.c Mon Nov 17 16:22:11 2008 +0000 @@ -234,7 +234,7 @@ if (!def) return -1; if (!state->modules_by_index) { - state->modules_by_index = PyList_New(20); + state->modules_by_index = PyList_New(0); if (!state->modules_by_index) return -1; }
