cpython/Lib/compiler
Jeremy Hylton 7e30c9bb5a Add lookup_name() to optimize use of stack frames
The use of com_node() introduces a lot of extra stack frames, enough
to cause a stack overflow compiling test.test_parser with the standard
interpreter recursionlimit.  The com_node() is a convenience function
that hides the dispatch details, but comes at a very high cost.  It is
more efficient to dispatch directly in the callers.  In these cases,
use lookup_node() and call the dispatched node directly.

Also handle yield_stmt in a way that will work with Python 2.1
(suggested by Shane Hathaway)
2001-08-27 21:02:51 +00:00
..
__init__.py typo 2001-04-09 04:23:55 +00:00
ast.py Generate correct reprs for Mul, Add, etc. 2001-08-18 00:14:37 +00:00
consts.py Define constants for types of scopes 2001-04-12 06:39:24 +00:00
future.py Track removal of doc string from Module().nodes[0] 2001-08-18 00:07:46 +00:00
misc.py Change the graph structure to contain the code generator object for 2000-11-06 03:43:11 +00:00
pyassem.py SF bug 430991: wrong co_lnotab 2001-06-09 09:26:21 +00:00
pycodegen.py Pop loop off the loop stack before handling the loop's else clause. 2001-04-12 21:54:41 +00:00
symbols.py Only treat an AugAssign as def if its the target is a Name. 2001-04-12 07:06:25 +00:00
transformer.py Add lookup_name() to optimize use of stack frames 2001-08-27 21:02:51 +00:00
visitor.py Two changes to visitor API: 2001-08-27 20:47:08 +00:00