<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/compiler, branch v2.2.1</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/compiler?h=v2.2.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/compiler?h=v2.2.1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-12-28T04:27:46Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create branch</title>
<updated>2001-12-28T04:27:46Z</updated>
<author>
<name>cvs2svn</name>
<email>tools@python.org</email>
</author>
<published>2001-12-28T04:27:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=22768184cbbaa4bd6083c51c28183be7f4fc3d69'/>
<id>urn:sha1:22768184cbbaa4bd6083c51c28183be7f4fc3d69</id>
<content type='text'>
'release22-maint'.
</content>
</entry>
<entry>
<title>Fix [ #484645 ] little bug in pycodegen.py</title>
<updated>2001-11-27T23:35:10Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-27T23:35:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=57911ae35a76276997fb51afb78f0a8dfeb684b8'/>
<id>urn:sha1:57911ae35a76276997fb51afb78f0a8dfeb684b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix SF bug #479186: compiler generates bad code for "del"</title>
<updated>2001-11-09T16:24:34Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-09T16:24:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e'/>
<id>urn:sha1:6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e</id>
<content type='text'>
Fix by Neil Schemenauer.  Visit the Subscript node when trying to find
the operation for a statement.

XXX Not sure if there are other nodes that should be visited.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2001-10-18T21:57:37Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-18T21:57:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e0c446bb4ad67294f42d4cb53b4ff28413bd8dde'/>
<id>urn:sha1:e0c446bb4ad67294f42d4cb53b4ff28413bd8dde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Vastly improved stacksize calculation.</title>
<updated>2001-10-17T13:37:29Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-10-17T13:37:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=138d90eb73415e48a0e7f09a7c9603b1164bcaed'/>
<id>urn:sha1:138d90eb73415e48a0e7f09a7c9603b1164bcaed</id>
<content type='text'>
There are now no known cases where the compiler package computes a
stack depth lower than the one computed by the builtin compiler.  (To
achieve this state, we had to fix bugs in both compilers :-).

The chief change is to do the depth calculations with respect to basic
blocks.  The stack effect of block is calculated.  Then the flow graph
is traversed using breadth-first search to find the max weight path
through the graph.

Had to fix the StackDepthTracker to calculate the right info for
several opcodes: LOAD_ATTR, CALL_FUNCTION (and friends), MAKE_CLOSURE,
and DUP_TOPX.

XXX Still need to handle free variables in MAKE_CLOSURE.

XXX There are still a lot of places where the computed stack depth is
larger than for the builtin compiler.  These won't cause the
interpreter to overflow the frame, but they waste space.
</content>
</entry>
<entry>
<title>Handle testlist_safe as if it were testlist.</title>
<updated>2001-10-17T13:32:52Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-10-17T13:32:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d114261608f986b5c797eef4330fbe32041d3eb6'/>
<id>urn:sha1:d114261608f986b5c797eef4330fbe32041d3eb6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix comment typo</title>
<updated>2001-09-27T04:18:36Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2001-09-27T04:18:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=264e8186d551647d4583f592e44b2d7a64e61096'/>
<id>urn:sha1:264e8186d551647d4583f592e44b2d7a64e61096</id>
<content type='text'>
</content>
</entry>
<entry>
<title>API change:</title>
<updated>2001-09-17T21:02:51Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-17T21:02:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9dca36432e4526da9c5885e86782e7dfa5432c42'/>
<id>urn:sha1:9dca36432e4526da9c5885e86782e7dfa5432c42</id>
<content type='text'>
compile() becomes replacement for builtin compile()
compileFile() generates a .pyc from a .py
both are exported in __init__

compiler.parse() gets optional second argument to specify compilation
mode, e.g. single, eval, exec

Add AbstractCompileMode as parent class and Module, Expression, and
Interactive as concrete subclasses.  Each corresponds to a compilation
mode.

THe AbstractCompileMode instances in turn delegate to CodeGeneration
subclasses specialized for their particular functions --
ModuleCodeGenerator, ExpressionCodeGeneration,
InteractiveCodeGenerator.
</content>
</entry>
<entry>
<title>Re-created after change to astgen to calculate hardest_arg correctly</title>
<updated>2001-09-17T20:17:02Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-17T20:17:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c8ed18a4e3756f0cccbcddd10323ef536ad003ec'/>
<id>urn:sha1:c8ed18a4e3756f0cccbcddd10323ef536ad003ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Last set of change to get regression tests to pass</title>
<updated>2001-09-17T19:33:48Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-17T19:33:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e4cc7e0d84747826d3d2546d1bccd9c40a455c2'/>
<id>urn:sha1:2e4cc7e0d84747826d3d2546d1bccd9c40a455c2</id>
<content type='text'>
Remove the only test in the syntax module.  It ends up that the
transformer must handle this error case.

In the transformer, check for a list compression in com_assign_list()
by looking for a list_for node where a comma is expected.

In pycodegen.compile() re-raise the SyntaxError rather than catching
it and exiting
</content>
</entry>
</feed>
