<br><br><div><span class="gmail_quote">On 9/13/06, <b class="gmail_sendername">Sanghyeon Seo</b> &lt;<a href="mailto:sanxiyn@gmail.com">sanxiyn@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
CPython 2.5, which will be released Real Soon Now, is the first<br>version to ship with new &quot;AST branch&quot;, which have been in development<br>for a long time.<br><br>AST branch uses ASDL, Abstract Syntax Description Language
<br><a href="http://asdl.sourceforge.net/">http://asdl.sourceforge.net/</a> to describe Abstract Syntax Tree data<br>structure used by CPython compiler. In theory this is language<br>independant, and the same file could be used to generate C# source
<br>files.</blockquote><div><br>It would be nice, but see below. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Having the same AST for Python implementations will be good for
<br>applications and libraries using Python implementations's internal<br>parsers and compilers. Currently, those using CPython parser module or<br>compiler package can't be easily ported to IronPython.<br><br>What do you think?
</blockquote><div><br>I have talked to Jim Hugunin about this very topic at the last PyCon.&nbsp; He pointed out that IronPython was started before he knew about the AST branch so that's why he didn't use it.&nbsp; Plus, by the time he did know, it was too late to switch right then and there.
<br><br>As for making the AST branch itself more of a standard, I have talked to Jeremy Hylton about that and he didn't like the idea, at least for now.&nbsp; The reasons for keeping it as &quot;experimental&quot; in terms of exposure at the Python level is that we do not want to lock ourselves down to some AST spec that we end up changing in the future.&nbsp; It's the same reasoning behind not officially documenting the marshal format; we want the flexibility.
<br><br>How best to resolve all of this, I don't know.&nbsp; I completely understand not wanting to lock ourselves down to an AST too soon.&nbsp; Might need to wait a little while after the AST has been out in the wild to see what the user response is and then make a decision.
<br><br>-Brett<br></div></div>