Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Matthieu Brucher
> That's only two points. :-) In French, we say that several starts with 2 ;) > On 1; If that's true, I won't mention git again. I tis, you can check on the git repository (it's a mix of C, perl, shell scripts, Python, ...) > On 2; Who knows what their life cycle is. You can check on their web

Re: [Python-Dev] E3 BEFEHLE

2010-01-20 Thread Anand Balachandran Pillai
On Sun, Jan 17, 2010 at 9:42 AM, Dj Gilcrease wrote: > 2010/1/16 Jack Diederich : > > Good lord, did this make it past other people's spam filters too? I > > especially liked the reference to "REGION -2,0 ; Rlyeh". Ph'nglui > > mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn to you too sir. > > Ya ma

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Stephen J. Turnbull
Barry Warsaw writes: > (Besides, git in the stdlib doesn't make much sense :). "Dulwich." ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-d

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Antoine Pitrou
David Lyon pythontest.org> writes: > > I think I'll have better chances with PEPs. > > Being honest, if wonderful libraries like Sphinx and Mercurial > and Git and BZR can't make it into the stdlib, then there is > no hope for even newer code to get in there. > [snip] This is python-ideas mater

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Nick Coghlan
David Lyon wrote: > On 2; Who knows what their life cycle is. CVS is pretty much > dead, and svn looks like it is on the way out. > I can't think of how anything could be better than > mercurial or bzr but I know I will be proved wrong. I believe you misunderstood what Matthieu m

[Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread David Malcolm
I'm thinking of making this downstream change to Fedora's site.py (and possibly in future RHEL releases) so that the default encoding automatically picks up the encoding from the locale: def setencoding(): """Set the string encoding used by the Unicode implementation. The default is 'a

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread Nick Coghlan
David Malcolm wrote: > I've written up extensive notes on the change and the history of the > issue here: > https://fedoraproject.org/wiki/Features/PythonEncodingUsesSystemLocale > > Please let me know if there are any errors on that page! That discussion appears incomplete without any mention of

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread M.-A. Lemburg
David Malcolm wrote: > I'm thinking of making this downstream change to Fedora's site.py (and > possibly in future RHEL releases) so that the default encoding > automatically picks up the encoding from the locale: > > def setencoding(): > """Set the string encoding used by the Unicode implem

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread Martin v. Löwis
> Hope this is helpful; can anyone see any potential problems with this > change? As Marc-Andre says: such a change is unsupported, and *will* break Python. It's not true that the only supported encoding in 2.x is 'ascii', 'iso-8859-1' is also supported. 'utf-8' is not, neither is anything else.

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread David Malcolm
On Wed, 2010-01-20 at 22:37 +0100, M.-A. Lemburg wrote: > David Malcolm wrote: > > I'm thinking of making this downstream change to Fedora's site.py (and > > possibly in future RHEL releases) so that the default encoding > > automatically picks up the encoding from the locale: > > > > def setenco

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread M.-A. Lemburg
David Malcolm wrote: > On Wed, 2010-01-20 at 22:37 +0100, M.-A. Lemburg wrote: > Note that pango isn't even doing the module reload hack; it's written in > C, and going in directly through the C API: >PyUnicode_SetDefaultEncoding("utf-8"); > > I should mention that I've seen at least one C mod

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Georg Brandl
Am 20.01.2010 03:43, schrieb David Lyon: >> Barry was talking about mirrors of the python code. It is true a >> "package manager" could be developed based on a SCM, however you need >> to implement this far away from the stdlib and get traction with it >> within the community long before inclusion

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread Michael Foord
On 20/01/2010 21:37, M.-A. Lemburg wrote: David Malcolm wrote: I'm thinking of making this downstream change to Fedora's site.py (and possibly in future RHEL releases) so that the default encoding automatically picks up the encoding from the locale: def setencoding(): """Set the str

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread Martin v. Löwis
> Why only set an encoding on these streams when they're directly > connected to a tty? If you are sending data to the terminal, you can be fairly certain that the locale's encoding should be used. It's a convenience feature for the interactive mode, so that Unicode strings print correctly. When

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread Martin v. Löwis
>> The only supported default encodings in Python are: >> >> Python 2.x: ASCII >> Python 3.x: UTF-8 >> > > Is this true? For 3.x: yes. However, the default encoding is much less relevant in 3.x, since Python will never implicitly use the default encoding, except when some C module asks fo

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Martin v. Löwis
> We're looking forward to discussing this with everyone. I think the PEP is asking too much (although I can understand how marketing may have influenced that), and also asks for permission where none is needed. It is too broad: it asks (in its title) for the integration of Unladen Swallow, when

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-20 Thread MRAB
Martin v. Löwis wrote: The only supported default encodings in Python are: Python 2.x: ASCII Python 3.x: UTF-8 Is this true? For 3.x: yes. However, the default encoding is much less relevant in 3.x, since Python will never implicitly use the default encoding, except when some C module

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Terry Reedy
Some comments from a non-developer: The proposal to add this to 3.x seems a bit premature until you have a version that runs with 3.x. Not that I expect that to be a problem though. If CPython development moves to distributed hg, the notion of 'blessed' branches (other than the PSF release br

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Collin Winter
Hi Terry, On Wed, Jan 20, 2010 at 5:14 PM, Terry Reedy wrote: > Some comments from a non-developer: > > The proposal to add this to 3.x seems a bit premature until you have a > version that runs with 3.x. Not that I expect that to be a problem though. > If CPython development moves to distributed

[Python-Dev] newgil for python 2.5.4

2010-01-20 Thread Ross Cohen
I put together this patch which switches 2.5.4 over to use the newgil. This was generated by diffing change 76193 (last in the newgil branch) against change 76189 and applying that on top of the changes listed in issue 4293 (http://bugs.python.org/issue4293), specifically 68460, 68461 and 68722. Th

Re: [Python-Dev] newgil for python 2.5.4

2010-01-20 Thread Benjamin Peterson
2010/1/20 Ross Cohen : > Comments? Suggestions? I'm going to continue fixing this up, but was > wondering if this could possibly make it into python 2.7. Yes, it could, but please post it to the tracker instead of attaching patches. -- Regards, Benjamin

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Jeffrey Yasskin
On Wed, Jan 20, 2010 at 5:56 PM, Collin Winter wrote: > On Wed, Jan 20, 2010 at 5:14 PM, Terry Reedy wrote: >> Given the slight benefits compared to the costs, I think this, in its >> current state, should be optional, such as is psyco. >> >> Psyco has a similar time-space tradeoff, except that t

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Reid Kleckner
On Wed, Jan 20, 2010 at 8:14 PM, Terry Reedy wrote: > If CPython development moves to distributed hg, the notion of 'blessed' > branches (other than the PSF release branch) will, as I understand it, > become somewhat obsolete. If you make a branch publicly available, anyone > can grab it and merge

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Ben Finney
Georg Brandl writes: > But I've no intention to restrict feature releases to "every 18-24 > months". What now? Now we take further discussion to the ‘python-ideas’ forum. -- \ “We must respect the other fellow's religion, but only in the | `\ sense and to the extent that we resp

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Bill Janssen
Reid Kleckner wrote: > On Wed, Jan 20, 2010 at 8:14 PM, Terry Reedy wrote: > > If CPython development moves to distributed hg, the notion of 'blessed' > > branches (other than the PSF release branch) will, as I understand it, > > become somewhat obsolete. If you make a branch publicly available,

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Jack Diederich
On Wed, Jan 20, 2010 at 5:27 PM, Collin Winter wrote: [big snip] > In order to support hardware and software platforms where LLVM's JIT does not > work, Unladen Swallow provides a ``./configure --without-llvm`` option. This > flag carves out any part of Unladen Swallow that depends on LLVM, yieldi

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Benjamin Peterson
2010/1/20 Jack Diederich : > On Wed, Jan 20, 2010 at 5:27 PM, Collin Winter > wrote: > [big snip] >> In order to support hardware and software platforms where LLVM's JIT does not >> work, Unladen Swallow provides a ``./configure --without-llvm`` option. This >> flag carves out any part of Unladen

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Brett Cannon
On Wed, Jan 20, 2010 at 19:57, Bill Janssen wrote: > Reid Kleckner wrote: > > > On Wed, Jan 20, 2010 at 8:14 PM, Terry Reedy wrote: > > > If CPython development moves to distributed hg, the notion of 'blessed' > > > branches (other than the PSF release branch) will, as I understand it, > > > be

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Andrew McNabb
On Wed, Jan 20, 2010 at 10:13:56PM -0500, Reid Kleckner wrote: > 2) As a command line option, you can pass -j never. If you have a > short-lived script, you can just stick this in your #! line and forget > about it. This has more overhead, since all of the JIT machinery is > loaded into memory bu

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jack Diederich wrote: > Does disabling the LLVM change binary compatibility between modules > targeted at the same version? At tonight's Boston PIG we had some > binary package maintainers but most people (including myself) only > cared about source

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Martin v. Löwis
> It's true that as Martin said, we can rebase our code to Py3K in a > branch on python.org any time we like, the question is more "if we do > the work, will the Python community accept it". I've stated my personal preference already. Let me add an observation on top of that: even if the core comm

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Gregory P. Smith
+1 My biggest concern is memory usage but it sounds like addressing that is already in your mind. I don't so much mind an additional up front constant and per-line-of-code hit for instrumentation but leaks are unacceptable. Any instrumentation data or jit caches should be managed (and tunable at

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Dirkjan Ochtman
On Thu, Jan 21, 2010 at 02:56, Collin Winter wrote: > Agreed. We are actively working to improve the startup time penalty. > We're interested in getting guidance from the CPython community as to > what kind of a startup slow down would be sufficient in exchange for > greater runtime performance.