]> granicus.if.org Git - python/commit
Add co_stacksize field to codeobject structure, and stacksize argument
authorGuido van Rossum <guido@python.org>
Fri, 17 Jan 1997 21:04:03 +0000 (21:04 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Jan 1997 21:04:03 +0000 (21:04 +0000)
commit8b993a98db507cc3a75067af4c865ffc8afbada1
treebe3fd639a280cf39bc3827babdd4bd10b5eb4e59
parent3f6e408a31208d29cf867bb30496bdb1f863d310
Add co_stacksize field to codeobject structure, and stacksize argument
to PyCode_New() argument list.  Move MAXBLOCKS constant to conpile.h.

Added accurate calculation of the actual stack size needed by the
generated code.

Also commented out all fprintf statements (except for a new one to
diagnose stack underflow, and one in #ifdef'ed out code), and added
some new TO DO suggestions (now that the stacksize is taken of the TO
DO list).
Python/compile.c