Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Martin v. Löwis
> 1. Do nothing. This will break code that currently uses AST, but doesn't add > any complexity to cpython. I'm in favor of this approach as well. Notice that there is ast.__version__ precisely so that applications can support multiple AST versions. Regards, Martin ___

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 3:42 PM, Eugene Toder wrote: >> If it's do-able, your option 2 is probably the way to go. Out of the >> box, it may just need to raise an exception if asked to down-convert >> code that uses new constructs that can't readily be expressed using >> the old AST (I'm specificall

Re: [Python-Dev] Python 3.3 release schedule posted

2011-04-02 Thread Georg Brandl
Am 02.04.2011 15:00, schrieb anatoly techtonik: > On Wed, Mar 23, 2011 at 9:56 PM, Georg Brandl wrote: >> I've posted a very preliminary Python 3.3 release schedule as PEP 398. >> The final release is set to be about 18 months after 3.2 final, which >> is in August 2012. > > Why this isn't being

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Eugene Toder
> If it's do-able, your option 2 is probably the way to go. Out of the > box, it may just need to raise an exception if asked to down-convert > code that uses new constructs that can't readily be expressed using > the old AST (I'm specifically thinking of the challenge of converting > PEP 380's yie

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 2:24 PM, Eugene Toder wrote: >> However, I'm not sure we *can* do a general-purpose AST transformation >> that handles both new nodes and changes to existing nodes correctly >> for all applications. > > As long as both versions contain the same information we can write a > t

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Eugene Toder
> However, I'm not sure we *can* do a general-purpose AST transformation > that handles both new nodes and changes to existing nodes correctly > for all applications. As long as both versions contain the same information we can write a transformation that does a near-perfect job. E.g. for my chang

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 1:23 PM, wrote: > This isn't exactly Nick's setup, and I've never used graphviz/dot before, so > I don't yet know how to lay things out, but, here's a first crack at it: > >    http://www.smontanaro.net/hgpython.png >    http://www.smontanaro.net/hgpython.gv I don't think

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread skip
Skip> I'm going to try to reproduce Nick's setup as he described it. Skip> That would certainly be a whole lot easy for me to understand, Skip> hopefully for others as well. Laura> *DEFINITELY* for me too! Nick> I'll reproduce it in dodgy ASCII art here, but a real diagram

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 12:07 PM, Benjamin Peterson wrote: >> Assuming we do want to make changes (not just extensions for new language >> features), I see 3 options for handling them: >> >> 1. Do nothing. This will break code that currently uses AST, but doesn't add >> any complexity to cpython. >

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 4:25 AM, Laura Creighton wrote: > In a message of Sat, 02 Apr 2011 12:56:13 CDT, s...@pobox.com writes: >> >>    Laura> Sphinx lets you embed graphviz. >>    Laura> http://sphinx.pocoo.org/ext/graphviz.html?highlight=image >> >>Cool, thanks.  I'm going to try to reproduce Ni

Re: [Python-Dev] not possible to install python 3.2

2011-04-02 Thread Nick Coghlan
On Wed, Mar 30, 2011 at 8:48 AM, Laura wrote: > The Result?  When I type python on Linux, i get the older version 2.7.1 > instead of the version that i just installed (python 3.2). > > Could you help me? As Benjamin noted, this is a question about using (/building) a released version of Python, a

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Benjamin Peterson
2011/4/2 Eugene Toder : > Hello, > > While working on a rewrite of peephole optimizer that works on AST > (http://bugs.python.org/issue11549) I had to make a few changes to the > structure of AST. The changes are described in the issue. This raises the > question -- what is the policy for making ch

[Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Eugene Toder
Hello, While working on a rewrite of peephole optimizer that works on AST (http://bugs.python.org/issue11549) I had to make a few changes to the structure of AST. The changes are described in the issue. This raises the question -- what is the policy for making changes to the AST? Documentation for

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread Laura Creighton
In a message of Sat, 02 Apr 2011 12:56:13 CDT, s...@pobox.com writes: > >Laura> Sphinx lets you embed graphviz. >Laura> http://sphinx.pocoo.org/ext/graphviz.html?highlight=image > >Cool, thanks. I'm going to try to reproduce Nick's setup as he described >it. That would certainly be a whol

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread skip
Laura> Sphinx lets you embed graphviz. Laura> http://sphinx.pocoo.org/ext/graphviz.html?highlight=image Cool, thanks. I'm going to try to reproduce Nick's setup as he described it. That would certainly be a whole lot easy for me to understand, hopefully for others as well. Skip __

Re: [Python-Dev] not possible to install python 3.2

2011-04-02 Thread Benjamin Peterson
You should ask python-list instead of here. 2011/3/29 Laura : > I order to install Python as python3 on Linux, i did: > > >     ./configure >     make >     make test >     sudo make install > > > However, when i typed "make test", i got two error messages: > > "test test_distutils failed -- multi

[Python-Dev] The path module PEP

2011-04-02 Thread Tung Wai Yip
Hello BJörn, Like you I've used the Path module one time or another. It is an excellent concept to refactor the confusing collection of file handling methods. I have not used it consistently, mainly because the module has not been maintained and it is not in the standard library as it shoul

[Python-Dev] not possible to install python 3.2

2011-04-02 Thread Laura
I order to install Python as python3 on Linux, i did: ./configure make make test sudo make install However, when i typed "make test", i got two error messages: "test test_distutils failed -- multiple errors occurred; run in verbose mode for details" "sys:1: ResourceWarning: un

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread Laura Creighton
In a message of Sat, 02 Apr 2011 10:36:01 CDT, s...@pobox.com writes: >>> =A0 =A0Antoine> Take a look at: >>> =A0 =A0Antoine> http://docs.python.org/devguide/committing.html >>> = > >>> What form should directed graphs be in for inclusion? > >anatoly> Pictures. > >anatoly> B

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 1:36 AM, wrote: > Yeah, I sort of figured that. :-) I meant JPEG? PNG?  ASCII art?  Some sort > of graph notation (like Graphviz)?  MoinMoin .draw notation?  Does ReST > support any sort of embedded images or diagrams? Taking PEP 1 as the precedent, I would suggest going w

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread skip
>>    Antoine> Take a look at: >>    Antoine> http://docs.python.org/devguide/committing.html >> >> What form should directed graphs be in for inclusion? anatoly> Pictures. anatoly> But so far I haven't seen any Graphviz-like tools in pure Python. anatoly> http://code

Re: [Python-Dev] Unicode module names (Was: Python 3.3 release schedule posted)

2011-04-02 Thread Georg Brandl
Am 02.04.2011 15:06, schrieb anatoly techtonik: > On Thu, Mar 24, 2011 at 2:41 AM, Victor Stinner > wrote: >> >> I am still working on the import machinery to fix last bugs related to >> Unicode. So it will be possible to do an useless "import café" in Python >> 3.3, on any platform. But it is not

Re: [Python-Dev] Decisions about workflow

2011-04-02 Thread anatoly techtonik
On Sat, Mar 26, 2011 at 5:54 PM, wrote: > >    Antoine> Take a look at: >    Antoine> http://docs.python.org/devguide/committing.html > > What form should directed graphs be in for inclusion? Pictures. But so far I haven't seen any Graphviz-like tools in pure Python. http://code.google.com/p/ra

[Python-Dev] Unicode module names (Was: Python 3.3 release schedule posted)

2011-04-02 Thread anatoly techtonik
On Thu, Mar 24, 2011 at 2:41 AM, Victor Stinner wrote: > > I am still working on the import machinery to fix last bugs related to > Unicode. So it will be possible to do an useless "import café" in Python > 3.3, on any platform. But it is not really an huge change (for the user, > but an huge chan

Re: [Python-Dev] Python 3.3 release schedule posted

2011-04-02 Thread anatoly techtonik
On Wed, Mar 23, 2011 at 9:56 PM, Georg Brandl wrote: > I've posted a very preliminary Python 3.3 release schedule as PEP 398. > The final release is set to be about 18 months after 3.2 final, which > is in August 2012. Why this isn't being added to Release Calendar on the front page? Do you have

Re: [Python-Dev] Issue 11715: building Python from source on multiarch Debian/Ubuntu

2011-04-02 Thread Stefan Krah
Antoine Pitrou wrote: > > >> Even if their servers won't run ubuntu 11.04+ (or something with the > > >> same library paths), their development environments will. > > > > > >They can also patch the Python releases themselves, or use Ubuntu > > >packages that someone else made for them (they can pr