Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Merlijn van Deen
On 17 March 2012 00:57, Guido van Rossum gu...@python.org wrote: OK, how about using encoding=bytes (yes, the type object!)? Or 'bytes' ? encoding=bytes makes (at least intuitive) sense to me; encoding='bytes' would imply there is an encoding with name 'bytes' that somehow does

Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Stefan Behnel
Guido van Rossum, 17.03.2012 00:57: OK, how about using encoding=bytes (yes, the type object!)? Or 'bytes' ? In lxml, there was an encoding=unicode option that would let the XML/HTML/text serialisation function return a Unicode string. This was eventually deprecated in favour of

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-17 Thread Paul Moore
On 17 March 2012 05:28, Mark Hammond skippy.hamm...@gmail.com wrote: I hate to seem like I'm piling on now after panning your last brainstorm :-), but... this would be quite problematic for virtualenv users, many of whom do rely on the fact that the virtualenv stuff is confined to within a

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-17 Thread Serhiy Storchaka
17.03.12 13:57, Paul Moore написав(ла): As there is no way of knowing the Python version without running Python, this is too slow to be practical. Cold start: $ time python3 --version Python 3.1.2 real0m0.073s user0m0.004s sys 0m0.004s Hot start: $ time python3 --version Python

Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Merlijn van Deen
On 17 March 2012 10:43, Stefan Behnel stefan...@behnel.de wrote: In lxml, there was an encoding=unicode option that would let the XML/HTML/text serialisation function return a Unicode string. This was eventually deprecated in favour of encoding='unicode' when ElementTree gained this feature as

Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Stefan Behnel
Merlijn van Deen, 17.03.2012 15:20: On 17 March 2012 10:43, Stefan Behnel wrote: In lxml, there was an encoding=unicode option that would let the XML/HTML/text serialisation function return a Unicode string. This was eventually deprecated in favour of encoding='unicode' when ElementTree

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-17 Thread Paul Moore
On 17 March 2012 14:07, Serhiy Storchaka storch...@gmail.com wrote: 17.03.12 13:57, Paul Moore написав(ла): As there is no way of knowing the Python version without running Python, this is too slow to be practical. Cold start: $ time python3 --version Python 3.1.2 real    0m0.073s

Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Guido van Rossum
One reason to use 'bytes' instead of bytes is that it is a string that can be specified e.g. in a config file. On Sat, Mar 17, 2012 at 7:28 AM, Stefan Behnel stefan...@behnel.de wrote: Merlijn van Deen, 17.03.2012 15:20: On 17 March 2012 10:43, Stefan Behnel wrote: In lxml, there was an

Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Serhiy Storchaka
17.03.12 17:00, Guido van Rossum написав(ла): One reason to use 'bytes' instead of bytes is that it is a string that can be specified e.g. in a config file. Thus, there are no reasons to use bytes instead of 'bytes'. ___ Python-Dev mailing list

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-17 Thread Georg Brandl
On 03/15/2012 01:17 AM, victor.stinner wrote: http://hg.python.org/cpython/rev/27441e0d6a75 changeset: 75672:27441e0d6a75 user:Victor Stinner victor.stin...@gmail.com date:Thu Mar 15 01:17:09 2012 +0100 summary: Issue #10278: Add an optional strict argument to

Re: [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)

2012-03-17 Thread Merlijn van Deen
On 17 March 2012 16:28, Serhiy Storchaka storch...@gmail.com wrote: Thus, there are no reasons to use bytes instead of 'bytes'. Aesthetics ;-) I've implemented the encoding=bytes version [1]. Thank you all for your input! Merlijn [1] http://bugs.python.org/issue6784#msg156166

Re: [Python-Dev] cpython (3.2): 3.2 explain json.dumps for non-string keys in dicts. closes issue6566. Patch

2012-03-17 Thread Georg Brandl
On 03/17/2012 08:41 AM, senthil.kumaran wrote: http://hg.python.org/cpython/rev/613919591a05 changeset: 75778:613919591a05 branch: 3.2 parent: 75771:32d3ecacdabf user:Senthil Kumaran sent...@uthcode.com date:Sat Mar 17 00:40:34 2012 -0700 summary: 3.2 explain

Re: [Python-Dev] [Python-checkins] cpython (3.2): this stuff will actually be new in 3.2.4

2012-03-17 Thread Éric Araujo
Hi, changeset: 509b222679e8 branch: 3.2 user:Benjamin Peterson benja...@python.org date:Wed Mar 07 18:49:43 2012 -0600 summary: this stuff will actually be new in 3.2.4 diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -2,6 +2,57 @@ Python

Re: [Python-Dev] [Python-checkins] cpython (3.2): this stuff will actually be new in 3.2.4

2012-03-17 Thread Georg Brandl
On 03/17/2012 06:20 PM, Éric Araujo wrote: Hi, changeset: 509b222679e8 branch: 3.2 user:Benjamin Peterson benja...@python.org date:Wed Mar 07 18:49:43 2012 -0600 summary: this stuff will actually be new in 3.2.4 diff --git a/Misc/NEWS b/Misc/NEWS ---

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-17 Thread Terry Reedy
On 3/17/2012 10:50 AM, Paul Moore wrote: Meh. None of this is a real issue. It's just some extra messy coding. But Van's point is that this proposal gives him less hard coding. Beyond pointing out that it gives me more, I don't have much to add. I suspect a case could be made that

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-17 Thread Michael Foord
On 17 Mar 2012, at 08:49, Georg Brandl wrote: On 03/15/2012 01:17 AM, victor.stinner wrote: http://hg.python.org/cpython/rev/27441e0d6a75 changeset: 75672:27441e0d6a75 user:Victor Stinner victor.stin...@gmail.com date:Thu Mar 15 01:17:09 2012 +0100 summary: Issue

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-17 Thread Georg Brandl
On 03/17/2012 09:47 PM, Michael Foord wrote: On 17 Mar 2012, at 08:49, Georg Brandl wrote: On 03/15/2012 01:17 AM, victor.stinner wrote: http://hg.python.org/cpython/rev/27441e0d6a75 changeset: 75672:27441e0d6a75 user:Victor Stinner victor.stin...@gmail.com date:Thu Mar 15

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-17 Thread Eric V. Smith
On 3/17/2012 4:47 PM, Michael Foord wrote: On 17 Mar 2012, at 08:49, Georg Brandl wrote: On 03/15/2012 01:17 AM, victor.stinner wrote: + If available, a monotonic clock is used. By default, if *strict* is False, + the function falls back to another clock if the monotonic clock

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-17 Thread Michael Foord
On 17 Mar 2012, at 15:04, Georg Brandl wrote: On 03/17/2012 09:47 PM, Michael Foord wrote: On 17 Mar 2012, at 08:49, Georg Brandl wrote: On 03/15/2012 01:17 AM, victor.stinner wrote: http://hg.python.org/cpython/rev/27441e0d6a75 changeset: 75672:27441e0d6a75 user:Victor Stinner

Re: [Python-Dev] [Python-checkins] cpython (2.6): Added tag v2.6.8rc2 for changeset bd9e1a02e3e3

2012-03-17 Thread Barry Warsaw
On Mar 17, 2012, at 11:34 PM, barry.warsaw wrote: http://hg.python.org/cpython/rev/6144a0748a95 changeset: 75809:6144a0748a95 branch: 2.6 parent: 75806:bd9e1a02e3e3 user:Barry Warsaw ba...@python.org date:Sat Mar 17 18:34:05 2012 -0400 summary: Added tag v2.6.8rc2

Re: [Python-Dev] [Python-checkins] cpython (2.6): Added tag v2.6.8rc2 for changeset bd9e1a02e3e3

2012-03-17 Thread Barry Warsaw
On Mar 18, 2012, at 12:03 AM, Georg Brandl wrote: I'm afraid it's the latter: tags are entries in .hgtags. So when you completely null-merge your 2.6 changes into 2.7, you are basically removing the tag from the 2.7 branch. And since to find tags, Mercurial looks in the .hgtags files of all

Re: [Python-Dev] [Python-checkins] cpython (2.6): Added tag v2.6.8rc2 for changeset bd9e1a02e3e3

2012-03-17 Thread Barry Warsaw
On Mar 17, 2012, at 07:15 PM, Éric Araujo wrote: Note that duplicate entries in .hgtags (when a tag was redone) should not be “cleaned up”: the presence of the old changeset hash greatly helps conflict resolution. (If someone pulled the repo with the old tag and later pulls and updates, then