Re: [Python-Dev] AST structure and maintenance branches

2006-09-28 Thread Jeremy Hylton
On 9/23/06, Anthony Baxter [EMAIL PROTECTED] wrote:
 I'd like to propose that the AST format returned by passing PyCF_ONLY_AST to
 compile() get the same guarantee in maintenance branches as the bytecode
 format - that is, unless it's absolutely necessary, we'll keep it the same.
 Otherwise anyone trying to write tools to manipulate the AST is in for a
 massive world of hurt.

 Anyone have any problems with this, or can it be added to PEP 6?

It's possible we should poll developers of other Python
implementations and find out if anyone has objections to supporting
this AST format.  But in principle, it sounds like a good idea to me.

Jeremy
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] AST structure and maintenance branches

2006-09-28 Thread Anthony Baxter
On Friday 29 September 2006 00:30, Jeremy Hylton wrote:
 On 9/23/06, Anthony Baxter [EMAIL PROTECTED] wrote:
  I'd like to propose that the AST format returned by passing PyCF_ONLY_AST
  to compile() get the same guarantee in maintenance branches as the
  bytecode format - that is, unless it's absolutely necessary, we'll keep
  it the same. Otherwise anyone trying to write tools to manipulate the AST
  is in for a massive world of hurt.
 
  Anyone have any problems with this, or can it be added to PEP 6?

 It's possible we should poll developers of other Python
 implementations and find out if anyone has objections to supporting
 this AST format.  But in principle, it sounds like a good idea to me.

I think it's extremely likely that the AST format will change over time - 
with major releases. I'd just like to guarantee that we won't mess with it 
other than that.

Anthony
-- 
Anthony Baxter [EMAIL PROTECTED]
It's never too late to have a happy childhood.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] AST structure and maintenance branches

2006-09-28 Thread Jeremy Hylton
On 9/28/06, Anthony Baxter [EMAIL PROTECTED] wrote:
 On Friday 29 September 2006 00:30, Jeremy Hylton wrote:
  On 9/23/06, Anthony Baxter [EMAIL PROTECTED] wrote:
   I'd like to propose that the AST format returned by passing PyCF_ONLY_AST
   to compile() get the same guarantee in maintenance branches as the
   bytecode format - that is, unless it's absolutely necessary, we'll keep
   it the same. Otherwise anyone trying to write tools to manipulate the AST
   is in for a massive world of hurt.
  
   Anyone have any problems with this, or can it be added to PEP 6?
 
  It's possible we should poll developers of other Python
  implementations and find out if anyone has objections to supporting
  this AST format.  But in principle, it sounds like a good idea to me.

 I think it's extremely likely that the AST format will change over time -
 with major releases. I'd just like to guarantee that we won't mess with it
 other than that.

Good point.  I'm fine with the change, then.

Jeremy
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] AST structure and maintenance branches

2006-09-23 Thread Michael Hudson
Anthony Baxter [EMAIL PROTECTED] writes:

 I'd like to propose that the AST format returned by passing PyCF_ONLY_AST to 
 compile() get the same guarantee in maintenance branches as the bytecode 
 format - that is, unless it's absolutely necessary, we'll keep it the same. 
 Otherwise anyone trying to write tools to manipulate the AST is in for a 
 massive world of hurt.

 Anyone have any problems with this, or can it be added to PEP 6?

Sounds like a good idea.

Cheers,
mwh

-- 
  Reading Slashdot can [...] often be worse than useless, especially
  to young and budding programmers: it can give you exactly the wrong
  idea about the technical issues it raises.
 -- http://www.cs.washington.edu/homes/klee/misc/slashdot.html#reasons
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] AST structure and maintenance branches

2006-09-23 Thread Brett Cannon
On 9/23/06, Anthony Baxter [EMAIL PROTECTED] wrote:
I'd like to propose that the AST format returned by passing PyCF_ONLY_AST tocompile() get the same guarantee in maintenance branches as the bytecodeformat - that is, unless it's absolutely necessary, we'll keep it the same.
Otherwise anyone trying to write tools to manipulate the AST is in for amassive world of hurt.Anyone have any problems with this, or can it be added to PEP 6?Works for me.-Bett 

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com