Re: [Python-Dev] cpython (3.1): #2650: Refactor re.escape to use enumerate().

2011-03-27 Thread Ezio Melotti
On 27/03/2011 0.03, Georg Brandl wrote: On 26.03.2011 20:19, Martin v. Löwis wrote: Am 26.03.2011 20:00, schrieb Terry Reedy: On 3/26/2011 2:17 PM, Georg Brandl wrote: Refactor doesn't sound like it belongs in the 3.1 branch... -for i in range(len(pattern)): -c =

[Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread skip
It seems that all checkin mails are utf-8-encoded. This makes it challenging to view checkin mails if you have a text-based mail reader. (I use VM within XEmacs. XEmacs doesn't seem to support utf-8 out of the box. I believe you need to add MULE to it.) Is there some reason such messages can't

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Antoine Pitrou
On Sun, 27 Mar 2011 10:06:49 -0500 s...@pobox.com wrote: It seems that all checkin mails are utf-8-encoded. This makes it challenging to view checkin mails if you have a text-based mail reader. (I use VM within XEmacs. XEmacs doesn't seem to support utf-8 out of the box. I believe you need

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Jon Ribbens
On Sun, Mar 27, 2011 at 05:21:08PM +0200, Antoine Pitrou wrote: On Sun, 27 Mar 2011 10:06:49 -0500 s...@pobox.com wrote: It seems that all checkin mails are utf-8-encoded. This makes it challenging to view checkin mails if you have a text-based mail reader. (I use VM within XEmacs.

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread skip
Antoine Hmm, are you sure? Software (especially mail-reading software) Antoine that doesn't support utf-8 in 2011 should be considered Antoine extremely broken. I'm not disputing that, and I understand that my current choice of mail reader limits me. I was just asking if it would be

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Eugene Toder
I'm not disputing that, and I understand that my current choice of mail reader limits me.  I was just asking if it would be possible (read: fairly easy) to only generate utf-8 when it was necessary. Isn't utf-8 itself same as ascii where no non-ascii symbols are used? Eugene

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Georg Brandl
On 27.03.2011 18:33, Jon Ribbens wrote: On Sun, Mar 27, 2011 at 05:21:08PM +0200, Antoine Pitrou wrote: On Sun, 27 Mar 2011 10:06:49 -0500 s...@pobox.com wrote: It seems that all checkin mails are utf-8-encoded. This makes it challenging to view checkin mails if you have a text-based mail

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread R. David Murray
On Sun, 27 Mar 2011 17:33:04 +0100, Jon Ribbens wrote: In my experience it is very difficult to get a whole system configured, such that UTF-8 works reliably. In my case that would mean, I think, Linux, glibc, mutt, screen, elinks, and SecureCRT would all have to simultaneously be configured

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Martin v. Löwis
Am 27.03.2011 17:06, schrieb s...@pobox.com: It seems that all checkin mails are utf-8-encoded. This makes it challenging to view checkin mails if you have a text-based mail reader. (I use VM within XEmacs. XEmacs doesn't seem to support utf-8 out of the box. I believe you need to add MULE

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Jon Ribbens
On Sun, Mar 27, 2011 at 02:13:29PM -0400, Eugene Toder wrote: I'm not disputing that, and I understand that my current choice of mail reader limits me.  I was just asking if it would be possible (read: fairly easy) to only generate utf-8 when it was necessary. Isn't utf-8 itself same as

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Jon Ribbens
On Sun, Mar 27, 2011 at 02:21:25PM -0400, R. David Murray wrote: Mind you, I've never managed to get the -- button working reliably either, but to be fair that's insanely complicated too. No idea what that is. Backspace key. ___ Python-Dev

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread skip
I'm not disputing that, and I understand that my current choice of mail reader limits me.  I was just asking if it would be possible (read: fairly easy) to only generate utf-8 when it was necessary. Eugene Isn't utf-8 itself same as ascii where no non-ascii symbols are

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread skip
Martin Am 27.03.2011 17:06, schrieb s...@pobox.com: It seems that all checkin mails are utf-8-encoded. This makes it challenging to view checkin mails if you have a text-based mail reader. (I use VM within XEmacs. XEmacs doesn't seem to support utf-8 out of the box. I

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread Terry Reedy
On 3/27/2011 2:13 PM, Eugene Toder wrote: I'm not disputing that, and I understand that my current choice of mail reader limits me. I was just asking if it would be possible (read: fairly easy) to only generate utf-8 when it was necessary. Isn't utf-8 itself same as ascii where no non-ascii

Re: [Python-Dev] utf-8 encoding in checkins?

2011-03-27 Thread R. David Murray
On Sun, 27 Mar 2011 19:46:35 +0100, Jon Ribbens jon+python-...@unequivocal.co.uk wrote: On Sun, Mar 27, 2011 at 02:21:25PM -0400, R. David Murray wrote: Mind you, I've never managed to get the -- button working reliably either, but to be fair that's insanely complicated too. No idea

[Python-Dev] Python 2.7 on Irix 6.5.22 fails ctypes callback test

2011-03-27 Thread David E. Cross
Trying to compile and install Python 2.7 on irix 6.5.22 IP22 (N32 ABI model), Using gcc-4.5.1 and binutils 2.20.1. Everything goes well (I applied th patches listed at: http://bugs.python.org/file15915/python-2.7-irix.patch ) It compiles and the test mostly work except for the callback

Re: [Python-Dev] Hg: inter-branch workflow

2011-03-27 Thread Neil Schemenauer
Guido van Rossum gu...@python.org wrote: What is rebase? Why does everyone want it and hate it at the same time? It's the same thing that happens when you do a svn up with local changes in your checkout. Logically, your patch gets modified so that it applies on a different (newer) version of

Re: [Python-Dev] Hg: inter-branch workflow

2011-03-27 Thread Neil Schemenauer
Barry Warsaw ba...@python.org wrote: I'm asking because I don't know hg and git well enough to answer the question. In my own use of Bazaar over the last 4+ years, I've almost never rebased or even been asked to. Maybe it depends on what kind of changes you commit. I consider future

Re: [Python-Dev] [Python-checkins] cpython: Add optional *func* argument to itertools.accumulate().

2011-03-27 Thread Daniel Stutzbach
On Sun, Mar 27, 2011 at 6:52 PM, raymond.hettinger python-check...@python.org wrote: -.. function:: accumulate(iterable) +.. function:: accumulate(iterable[, func]) Make an iterator that returns accumulated sums. Elements may be any addable -type including :class:`Decimal` or

Re: [Python-Dev] [Python-checkins] cpython: Add optional *func* argument to itertools.accumulate().

2011-03-27 Thread Nick Coghlan
On Mon, Mar 28, 2011 at 2:11 PM, Daniel Stutzbach stutzb...@google.com wrote: Is there a good use-case for the func argument?  I can only think of bad use-cases (where func does something that does not remotely resemble addition).  I fear that people will actually implement these bad use-cases,