summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-03 19:00:23 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-03 19:00:23 (GMT)
commit62d4624ea39b25a1b76d354486a52ef653a4aec0 (patch)
treeb97202f722655f818429bfbb39817347e88271e2 /Python
parentb8824952cb616bdb1b60bcf9fb3b486e91c7d42b (diff)
downloadcpython-62d4624ea39b25a1b76d354486a52ef653a4aec0.zip
cpython-62d4624ea39b25a1b76d354486a52ef653a4aec0.tar.gz
cpython-62d4624ea39b25a1b76d354486a52ef653a4aec0.tar.bz2
Create code string with initial size of 1000 instead of 0.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 1c3f2fa..b61658e 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -162,7 +162,7 @@ com_init(c, filename)
struct compiling *c;
char *filename;
{
- if ((c->c_code = newsizedstringobject((char *)NULL, 0)) == NULL)
+ if ((c->c_code = newsizedstringobject((char *)NULL, 1000)) == NULL)
goto fail_3;
if ((c->c_consts = newlistobject(0)) == NULL)
goto fail_2;