<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/compiler/pycodegen.py, branch v2.2.1</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/compiler/pycodegen.py?h=v2.2.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/compiler/pycodegen.py?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>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>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>
<entry>
<title>Handle more syntax errors.</title>
<updated>2001-09-17T18:03:55Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-17T18:03:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=37c9351cf6efbe58e01fd879a1d60cc6073ced6b'/>
<id>urn:sha1:37c9351cf6efbe58e01fd879a1d60cc6073ced6b</id>
<content type='text'>
Invoke compiler.syntax.check() after building AST.  If a SyntaxError
occurs, print the error and exit without generating a .pyc file.

Refactor code to use compiler.misc.set_filename() rather than passing
filename argument around to each CodeGenerator instance.
</content>
</entry>
<entry>
<title>support true division</title>
<updated>2001-09-17T16:41:02Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-17T16:41:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aee0bfedcc56edffd995c5cd5c3a4c5ca0d960b7'/>
<id>urn:sha1:aee0bfedcc56edffd995c5cd5c3a4c5ca0d960b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add code generator for yield stmt</title>
<updated>2001-09-14T23:17:55Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-14T23:17:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1048aa933f096c33738f5088c7362a00e2c5b85c'/>
<id>urn:sha1:1048aa933f096c33738f5088c7362a00e2c5b85c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Various sundry changes for 2.2 compatibility</title>
<updated>2001-09-14T22:49:08Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-14T22:49:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1e99a77120d7bf3509eb283dde871b89ad7f6007'/>
<id>urn:sha1:1e99a77120d7bf3509eb283dde871b89ad7f6007</id>
<content type='text'>
Remove the option to have nested scopes or old LGB scopes.  This has a
large impact on the code base, by removing the need for two variants
of each CodeGenerator.

Add a get_module() method to CodeGenerator objects, used to get the
future features for the current module.

Set CO_GENERATOR, CO_GENERATOR_ALLOWED, and CO_FUTURE_DIVISION flags
as appropriate.

Attempt to fix the value of nlocals in newCodeObject(), assuming that
nlocals is 0 if CO_NEWLOCALS is not defined.
</content>
</entry>
</feed>
