Re: [Python-Dev] [Python-checkins] cpython: Fix PyUnicode_Substring() for start >= length and start > end

2012-05-02 Thread Victor Stinner
>> +    if (start >= length || end < start) { >> +        assert(end == length); >> +        return PyUnicode_New(0, 0); >> +    } > > That assert doesn't look right. Oh, you're right. I added it for the first case: start>=length. But the assertion is really useless, I removed it. Thanks! Victor

Re: [Python-Dev] [Python-checkins] cpython: Fix PyUnicode_Substring() for start >= length and start > end

2012-05-02 Thread Nick Coghlan
On Thu, May 3, 2012 at 10:33 AM, victor.stinner wrote: > +    if (start >= length || end < start) { > +        assert(end == length); > +        return PyUnicode_New(0, 0); > +    } That assert doesn't look right. Consider: "abc"[4:1] Unless I'm missing something, "end" will be 1, but "lengt

Re: [Python-Dev] Open PEPs and large-scale changes for 3.3

2012-05-02 Thread Yury Selivanov
On 2012-05-02, at 2:46 AM, Larry Hastings wrote: > On 05/01/2012 01:12 PM, Brett Cannon wrote: >> That would be great! First thing is addressing Guido's concerns from >> http://mail.python.org/pipermail/python-dev/2012-March/117515.html and then >> handling any issues you found. Not sure if Larr

Re: [Python-Dev] Open PEPs and large-scale changes for 3.3

2012-05-02 Thread Yury Selivanov
On 2012-05-01, at 4:12 PM, Brett Cannon wrote: > > That would be great! First thing is addressing Guido's concerns from > http://mail.python.org/pipermail/python-dev/2012-March/117515.html and then > handling any issues you found. Not sure if Larry was asking about this out of > curiosity or be

Re: [Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Martin v. Löwis
Are the download pages for older Python versions supposed to be kept up to date at all? I occasionally update them when I see issues with them. Your specific issue, I missed so far. If you would like to make this kind of update, please let me know. Regards, Martin __

Re: [Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Martin v. Löwis
On 02.05.2012 17:55, Terry Reedy wrote: On 5/2/2012 10:16 AM, Carl Meyer wrote: Hi all, Are the download pages for older Python versions supposed to be kept up to date at all? I just noticed that the 2.4.6 download page (http://www.python.org/download/releases/2.4.6/) says things like "Python 2

Re: [Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Brian Curtin
On Wed, May 2, 2012 at 12:06 PM, Ezio Melotti wrote: > On 02/05/2012 19.33, Michael Foord wrote: >> >> On 2 May 2012, at 16:55, Terry Reedy wrote: >>> >>> I would send the above to webmas...@python.org (should be at the bottom >>> of pages). We develop CPython but do not directly manage the websit

Re: [Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Ezio Melotti
On 02/05/2012 19.33, Michael Foord wrote: On 2 May 2012, at 16:55, Terry Reedy wrote: I would send the above to webmas...@python.org (should be at the bottom of pages). We develop CPython but do not directly manage the website. Not true. The download pages are administered by the release manag

Re: [Python-Dev] Another buildslave - Ubuntu again

2012-05-02 Thread Antoine Pitrou
On Thu, 3 May 2012 00:25:05 +0800 Senthil Kumaran wrote: > On Wed, May 2, 2012 at 10:54 PM, Antoine Pitrou wrote: > > > What are the characteristics of your machine? We already have several > > Linux x86/x86-64 buildbots... That said, we could also toy with other > > build options if someone has

Re: [Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Michael Foord
On 2 May 2012, at 16:55, Terry Reedy wrote: > On 5/2/2012 10:16 AM, Carl Meyer wrote: >> Hi all, >> >> Are the download pages for older Python versions supposed to be kept up >> to date at all? I just noticed that the 2.4.6 download page >> (http://www.python.org/download/releases/2.4.6/) says t

Re: [Python-Dev] Another buildslave - Ubuntu again

2012-05-02 Thread Senthil Kumaran
On Wed, May 2, 2012 at 10:54 PM, Antoine Pitrou wrote: > What are the characteristics of your machine? We already have several > Linux x86/x86-64 buildbots... That said, we could also toy with other > build options if someone has a request about that. It is not very unique. It is Intel x86 (32 b

Re: [Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Terry Reedy
On 5/2/2012 10:16 AM, Carl Meyer wrote: Hi all, Are the download pages for older Python versions supposed to be kept up to date at all? I just noticed that the 2.4.6 download page (http://www.python.org/download/releases/2.4.6/) says things like "Python 2.4 is now in security-fix-only mode" (whe

Re: [Python-Dev] Another buildslave - Ubuntu again

2012-05-02 Thread Antoine Pitrou
On Wed, 2 May 2012 13:13:15 +1000 Chris Angelico wrote: > On Wed, May 2, 2012 at 1:09 PM, Senthil Kumaran wrote: > > Also, I think the instructions in the wiki could be improved. I was > > not able to su - buildbot after installing through package manager. I > > shall edit it once I have set it u

Re: [Python-Dev] Another buildslave - Ubuntu again

2012-05-02 Thread Antoine Pitrou
On Wed, 2 May 2012 14:07:09 +0800 Senthil Kumaran wrote: > On Wed, May 2, 2012 at 1:55 PM, "Martin v. Löwis" wrote: > > I'm not sure how useful it is to have a build slave which you can't > > commit to having for more than 3 months. So I'm -0 on adding this > > slave, but it is up to Antoine to d

[Python-Dev] outdated info on download pages for older versions

2012-05-02 Thread Carl Meyer
Hi all, Are the download pages for older Python versions supposed to be kept up to date at all? I just noticed that the 2.4.6 download page (http://www.python.org/download/releases/2.4.6/) says things like "Python 2.4 is now in security-fix-only mode" (whereas in fact it no longer gets even s

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread Curt Hagenlocher
On Wed, May 2, 2012 at 6:56 AM, Stefan Behnel wrote: > I'm not sure if MSVC and MSVC++ are the same thing, but I surely remember > reports by MSVC users only a few years ago that Cython generated C code > contained a declaration after an executed code at some point, and that > failed to compile f

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread R. David Murray
On Wed, 02 May 2012 21:37:35 +0800, Matt Joiner wrote: > On May 2, 2012 6:00 PM, "Antoine Pitrou" wrote: > > > > On Wed, 02 May 2012 01:43:32 -0700 > > Larry Hastings wrote: > > > > > > I realize we can't jump to C99 because of A Certain Compiler. (Its name > > > rhymes with Bike Row Soft Frizz

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread Stefan Behnel
Matt Joiner, 02.05.2012 15:37: > On May 2, 2012 6:00 PM, "Antoine Pitrou" wrote: >> On Wed, 02 May 2012 01:43:32 -0700 >> Larry Hastings wrote: >>> >>> I realize we can't jump to C99 because of A Certain Compiler. (Its name >>> rhymes with Bike Row Soft Frizz You All See Muss Muss.) But even tha

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread Matt Joiner
On May 2, 2012 6:00 PM, "Antoine Pitrou" wrote: > > On Wed, 02 May 2012 01:43:32 -0700 > Larry Hastings wrote: > > > > I realize we can't jump to C99 because of A Certain Compiler. (Its name > > rhymes with Bike Row Soft Frizz You All See Muss Muss.) But even that > > compiler added this extens

Re: [Python-Dev] [RELEASED] Python 3.3.0 alpha 3

2012-05-02 Thread Mark Shannon
Nick Coghlan wrote: On Wed, May 2, 2012 at 7:55 PM, Mark Shannon wrote: Or maybe three parts? New features. Behavioural changes (i.e. bug fixes) Performance enhancements The release PEPs are mainly there for *our* benefit, not end users. For end users, it's the What's New document that matte

Re: [Python-Dev] [RELEASED] Python 3.3.0 alpha 3

2012-05-02 Thread Nick Coghlan
On Wed, May 2, 2012 at 7:55 PM, Mark Shannon wrote: > Or maybe three parts? > New features. > Behavioural changes (i.e. bug fixes) > Performance enhancements The release PEPs are mainly there for *our* benefit, not end users. For end users, it's the What's New document that matters. For performa

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread Antoine Pitrou
On Wed, 02 May 2012 01:43:32 -0700 Larry Hastings wrote: > > I realize we can't jump to C99 because of A Certain Compiler. (Its name > rhymes with Bike Row Soft Frizz You All See Muss Muss.) But even that > compiler added this extension in the early 90s. > > Do we officially support any C co

Re: [Python-Dev] [RELEASED] Python 3.3.0 alpha 3

2012-05-02 Thread Mark Shannon
Georg Brandl wrote: On behalf of the Python development team, I'm happy to announce the third alpha release of Python 3.3.0. This is a preview release, and its use is not recommended in production settings. Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting

[Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread Larry Hastings
Right now the CPython trunk religiously declares all variables at the tops of scopes, before any code, because this is all C89 permits. Back in the 90s all the C compilers took a page out of the C++ playbook and independently, but nearly without exception, extended the language to allow you

Re: [Python-Dev] Another buildslave - Ubuntu again

2012-05-02 Thread Martin v. Löwis
On 02.05.2012 08:07, Senthil Kumaran wrote: On Wed, May 2, 2012 at 1:55 PM, "Martin v. Löwis" wrote: I'm not sure how useful it is to have a build slave which you can't commit to having for more than 3 months. So I'm -0 on adding this slave, but it is up to Antoine to decide. I am likely swit