Re: [Python-Dev] [Python-checkins] cpython (2.7): Fixup repr for dict_proxy objects.

2011-06-29 Thread Raymond Hettinger
On Jun 30, 2011, at 2:14 AM, Ezio Melotti wrote: > Hi, > > On Thu, Jun 30, 2011 at 2:51 AM, raymond.hettinger > wrote: > Fixup repr for dict_proxy objects. > > > This was already fixed in a slightly different way in 3.x. The %R formatting code is not available in 2.x Raymond_

Re: [Python-Dev] speed.python.org machine online

2011-06-29 Thread Eric Snow
On Wed, Jun 29, 2011 at 10:05 PM, Jesse Noller wrote: > I've posted a more expansive entry on my blog: > http://jessenoller.com/2011/06/29/announcing-the-new-speed-python-org-machine/ > > But the short version, that as discussed at the VM and language > summit, we now have a hosted machine dedicat

Re: [Python-Dev] PEP 397 (Python launcher for Windows) reference implementation

2011-06-29 Thread Mark Hammond
On 30/06/2011 3:00 AM, Vinay Sajip wrote: PEP 397 (Python launcher for Windows) has a reference implementation in Python. Does anyone know of a C implementation, or is planning/working on one? I realise this is the final objective, so such implementation might be premature, but perhaps someone ha

[Python-Dev] speed.python.org machine online

2011-06-29 Thread Jesse Noller
I've posted a more expansive entry on my blog: http://jessenoller.com/2011/06/29/announcing-the-new-speed-python-org-machine/ But the short version, that as discussed at the VM and language summit, we now have a hosted machine dedicated to the running of cross-interpreter speed tests, etc. The har

Re: [Python-Dev] [Python-checkins] cpython (2.7): Fixup repr for dict_proxy objects.

2011-06-29 Thread Ezio Melotti
Hi, On Thu, Jun 30, 2011 at 2:51 AM, raymond.hettinger < python-check...@python.org> wrote: > http://hg.python.org/cpython/rev/9a0b6c07b488 > changeset: 71086:9a0b6c07b488 > branch: 2.7 > parent: 71055:cdfcd00873cd > user:Raymond Hettinger > date:Thu Jun 30 00:44:36 2

Re: [Python-Dev] svn.python.org confusion

2011-06-29 Thread Martin v. Löwis
> Could some text be added to the svn browser pages to at least indicate > that the repo is no longer being updated with a link to the > hg.python.org browser? Adding some text to only some pages (namely those that have been migrated to mercurial) is difficult - so difficult that I won't have t

Re: [Python-Dev] [Python-checkins] cpython (3.2): Issue #12400: runtest() truncates the StringIO stream before a new test

2011-06-29 Thread Victor Stinner
Le mercredi 29 juin 2011 à 13:05 -0400, Terry Reedy a écrit : > On 6/29/2011 11:30 AM, victor.stinner wrote: > > > summary: > >Issue #12400: runtest() truncates the StringIO stream before a new test > > > > files: > >Lib/test/regrtest.py | 1 + > >1 files changed, 1 insertions(+), 0 de

[Python-Dev] PEP 397 (Python launcher for Windows) reference implementation

2011-06-29 Thread Vinay Sajip
PEP 397 (Python launcher for Windows) has a reference implementation in Python. Does anyone know of a C implementation, or is planning/working on one? I realise this is the final objective, so such implementation might be premature, but perhaps someone has been experimenting ... Regards, Vinay Sa

Re: [Python-Dev] [Python-checkins] cpython: Issue #12400: fix test_faulthandler if regrtest captures sys.stderr

2011-06-29 Thread Nick Coghlan
On Wed, Jun 29, 2011 at 9:43 PM, victor.stinner wrote: > http://hg.python.org/cpython/rev/80c7d63325f6 > changeset:   71065:80c7d63325f6 > user:        Victor Stinner > date:        Wed Jun 29 13:44:05 2011 +0200 > summary: >  Issue #12400: fix test_faulthandler if regrtest captures sys.stderr >

Re: [Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

2011-06-29 Thread M.-A. Lemburg
Victor Stinner wrote: > Le mercredi 29 juin 2011 à 10:18 +0200, M.-A. Lemburg a écrit : >> Victor Stinner wrote: >>> Le mardi 28 juin 2011 à 16:02 +0200, M.-A. Lemburg a écrit : How about a more radical change: have open() in Py3 default to opening the file in binary mode, if no encoding

Re: [Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

2011-06-29 Thread Victor Stinner
Le mercredi 29 juin 2011 à 09:21 +0200, Baptiste Carvello a écrit : > By the way, I just thought that for real programming, I would love to have a > -Wcrossplatform command switch, which would warn for all unportable > constructs > in one go. That way, I don't have to remember which parts of 'os

Re: [Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

2011-06-29 Thread Victor Stinner
Le mercredi 29 juin 2011 à 10:18 +0200, M.-A. Lemburg a écrit : > Victor Stinner wrote: > > Le mardi 28 juin 2011 à 16:02 +0200, M.-A. Lemburg a écrit : > >> How about a more radical change: have open() in Py3 default to > >> opening the file in binary mode, if no encoding is given (even > >> if th

Re: [Python-Dev] svn.python.org confusion

2011-06-29 Thread Ned Deily
In article , Sandro Tosi wrote: > On Wed, Jun 29, 2011 at 03:05, Vinay Sajip wrote: > > Ned Deily acm.org> writes: > >> Could some text be added to the svn browser pages to at least indicate > >> that the repo is no longer being updated with a link to the > >> hg.python.org browser?   I'm not s

Re: [Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

2011-06-29 Thread M.-A. Lemburg
Victor Stinner wrote: > Le mardi 28 juin 2011 à 16:02 +0200, M.-A. Lemburg a écrit : >> How about a more radical change: have open() in Py3 default to >> opening the file in binary mode, if no encoding is given (even >> if the mode doesn't include 'b') ? > > I tried your suggested change: Python d

Re: [Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

2011-06-29 Thread Barry Warsaw
On Jun 28, 2011, at 09:42 PM, Georg Brandl wrote: >We need to stop making incompatible changes to Python 3. We had the chance >and took it to break all kinds of stuff, some of it gratuitous, with 3.0 and >even 3.1. Now the users need a period of compatibility and stability (just >like the langua

Re: [Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?

2011-06-29 Thread Baptiste Carvello
Le 28/06/2011 16:46, Paul Moore a écrit : -1. This will make things harder for simple scripts which are not intended to be cross-platform. +1 to all you said. I frequently use the python command prompt or "python -c" for various quick tasks (mostly on linux). I would hate to replace my ugly,

Re: [Python-Dev] svn.python.org confusion

2011-06-29 Thread Sandro Tosi
On Wed, Jun 29, 2011 at 03:05, Vinay Sajip wrote: > Ned Deily acm.org> writes: > >> Could some text be added to the svn browser pages to at least indicate >> that the repo is no longer being updated with a link to the >> hg.python.org browser?   I'm not sure what to do about the repos >> themselv