<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Include/Python-ast.h, branch v2.5.4</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>Prefix AST symbols with _Py_. Fixes #1637022.</title>
<updated>2007-01-19T06:42:33+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2007-01-19T06:42:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9d179ce4f9305f9e8e8ed1a7bba93c2d827f39a1'/>
<id>9d179ce4f9305f9e8e8ed1a7bba93c2d827f39a1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce asdl_int_seq, to hold cmpop_ty.</title>
<updated>2006-04-13T12:29:43+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-13T12:29:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0cc56e5c59bbc9d839d1468f8b51ea9391e8852a'/>
<id>0cc56e5c59bbc9d839d1468f8b51ea9391e8852a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make _kind types global for C++ compilation.</title>
<updated>2006-04-11T08:06:50+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-11T08:06:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=01b810106c348db2e3242126adf655b686aa2a1c'/>
<id>01b810106c348db2e3242126adf655b686aa2a1c</id>
<content type='text'>
Explicitly cast void* to int to cmpop_ty.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Explicitly cast void* to int to cmpop_ty.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add lineno, col_offset to excephandler to enable future fix for</title>
<updated>2006-04-04T04:00:23+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2006-04-04T04:00:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2f327c14eb998e8796a3775aa6a7aade14e97004'/>
<id>2f327c14eb998e8796a3775aa6a7aade14e97004</id>
<content type='text'>
tracing/line number table in except blocks.

Reflow long lines introduced by col_offset changes.  Update test_ast
to handle new fields in excepthandler.

As note in Python.asdl says, we might want to rethink how attributes
are handled.  Perhaps they should be the same as other fields, with
the primary difference being how they are defined for all types within
a sum.

Also fix asdl_c so that constructors with int fields don't fail when
passed a zero value.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tracing/line number table in except blocks.

Reflow long lines introduced by col_offset changes.  Update test_ast
to handle new fields in excepthandler.

As note in Python.asdl says, we might want to rethink how attributes
are handled.  Perhaps they should be the same as other fields, with
the primary difference being how they are defined for all types within
a sum.

Also fix asdl_c so that constructors with int fields don't fail when
passed a zero value.
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #1440601: Add col_offset attribute to AST nodes.</title>
<updated>2006-03-01T22:49:05+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-03-01T22:49:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=49c5da1d88f605248167f4d95b1dfe08c1f703c7'/>
<id>49c5da1d88f605248167f4d95b1dfe08c1f703c7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SF patch #1438387, PEP 328: relative and absolute imports.</title>
<updated>2006-02-28T16:09:29+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-02-28T16:09:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f7f438ba3b05eb4356e7511401686b07d9dfb6d8'/>
<id>f7f438ba3b05eb4356e7511401686b07d9dfb6d8</id>
<content type='text'>
 - IMPORT_NAME takes an extra argument from the stack: the relativeness of
   the import. Only passed to __import__ when it's not -1.

 - __import__() takes an optional 5th argument for the same thing; it
   __defaults to -1 (old semantics: try relative, then absolute)

 - 'from . import name' imports name (be it module or regular attribute)
   from the current module's *package*. Likewise, 'from .module import name'
   will import name from a sibling to the current module.

 - Importing from outside a package is not allowed; 'from . import sys' in a
   toplevel module will not work, nor will 'from .. import sys' in a
   (single-level) package.

 - 'from __future__ import absolute_import' will turn on the new semantics
   for import and from-import: imports will be absolute, except for
   from-import with dots.

Includes tests for regular imports and importhooks, parser changes and a
NEWS item, but no compiler-package changes or documentation changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - IMPORT_NAME takes an extra argument from the stack: the relativeness of
   the import. Only passed to __import__ when it's not -1.

 - __import__() takes an optional 5th argument for the same thing; it
   __defaults to -1 (old semantics: try relative, then absolute)

 - 'from . import name' imports name (be it module or regular attribute)
   from the current module's *package*. Likewise, 'from .module import name'
   will import name from a sibling to the current module.

 - Importing from outside a package is not allowed; 'from . import sys' in a
   toplevel module will not work, nor will 'from .. import sys' in a
   (single-level) package.

 - 'from __future__ import absolute_import' will turn on the new semantics
   for import and from-import: imports will be absolute, except for
   from-import with dots.

Includes tests for regular imports and importhooks, parser changes and a
NEWS item, but no compiler-package changes or documentation changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>PEP 343 -- the with-statement.</title>
<updated>2006-02-27T22:32:47+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-02-27T22:32:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c2e20744b2b7811632030470971c31630f0975e2'/>
<id>c2e20744b2b7811632030470971c31630f0975e2</id>
<content type='text'>
This was started by Mike Bland and completed by Guido
(with help from Neal).

This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.

There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was started by Mike Bland and completed by Guido
(with help from Neal).

This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.

There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
</pre>
</div>
</content>
</entry>
<entry>
<title>PEP 308 implementation, including minor refdocs and some testcases. It</title>
<updated>2006-02-27T00:24:13+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-02-27T00:24:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=dca3b9c797f6dd4b08d590fa2aa1031e22ab598e'/>
<id>dca3b9c797f6dd4b08d590fa2aa1031e22ab598e</id>
<content type='text'>
breaks the parser module, because it adds the if/else construct as well as
two new grammar rules for backward compatibility. If no one else fixes
parsermodule, I guess I'll go ahead and fix it later this week.

The TeX code was checked with texcheck.py, but not rendered. There is
actually a slight incompatibility:

&gt;&gt;&gt; (x for x in lambda:0)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: iteration over non-sequence

changes into

&gt;&gt;&gt; (x for x in lambda: 0)
  File "&lt;stdin&gt;", line 1
    (x for x in lambda: 0)
                     ^
SyntaxError: invalid syntax

Since there's no way the former version can be useful, it's probably a
bugfix ;)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
breaks the parser module, because it adds the if/else construct as well as
two new grammar rules for backward compatibility. If no one else fixes
parsermodule, I guess I'll go ahead and fix it later this week.

The TeX code was checked with texcheck.py, but not rendered. There is
actually a slight incompatibility:

&gt;&gt;&gt; (x for x in lambda:0)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: iteration over non-sequence

changes into

&gt;&gt;&gt; (x for x in lambda: 0)
  File "&lt;stdin&gt;", line 1
    (x for x in lambda: 0)
                     ^
SyntaxError: invalid syntax

Since there's no way the former version can be useful, it's probably a
bugfix ;)
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate code to recursively copy an AST into</title>
<updated>2006-02-26T19:42:26+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-26T19:42:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bd260da900b5c5f16e5c61f6795d08171b33e0f8'/>
<id>bd260da900b5c5f16e5c61f6795d08171b33e0f8</id>
<content type='text'>
a tree of Python objects. Expose this through compile().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
a tree of Python objects. Expose this through compile().
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge from ast-arena.  This reduces the code in Python/ast.c by ~300 lines,</title>
<updated>2005-12-17T20:54:49+00:00</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2005-12-17T20:54:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=adb69fcdffdc50ee3e1d33b00cd874020197b445'/>
<id>adb69fcdffdc50ee3e1d33b00cd874020197b445</id>
<content type='text'>
simplifies a lot of error handling code, and fixes many memory leaks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
simplifies a lot of error handling code, and fixes many memory leaks.
</pre>
</div>
</content>
</entry>
</feed>
