Re: [Python-Dev] Doc suggestion for Elementtree (for 2.5? a bitlate, I know...)

2006-08-29 Thread Fredrik Lundh
Steve Holden wrote: Standards, apparently, are for *other* people :-) ET was written years before the certain modules should use camelcase stuff was removed from PEP 8. as a refresher for those of you who have trouble remembering how things were back in early 2004, here's GvR's original style

Re: [Python-Dev] Doc suggestion for Elementtree (for 2.5? a bitlate, I know...)

2006-08-29 Thread Greg Ewing
Fredrik Lundh wrote: ET was written years before the certain modules should use camelcase stuff was removed from PEP 8. Maybe so, but I was hoping that additions to the stdlib in this day and age might be adapted to follow modern conventions instead of just being plonked in as-is. -- Greg

[Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread Nick Coghlan
A discussion on the py3k list reminded me that translating a forward slice into a reversed slice is significantly less than obvious to many people. Not only do you have to negate the step value and swap the start and stop values, but you also need to subtract one from each of the step values,

Re: [Python-Dev] Doc suggestion for Elementtree (for 2.5? a bitlate, I know...)

2006-08-29 Thread Steve Holden
Greg Ewing wrote: Fredrik Lundh wrote: ET was written years before the certain modules should use camelcase stuff was removed from PEP 8. Maybe so, but I was hoping that additions to the stdlib in this day and age might be adapted to follow modern conventions instead of just being

Re: [Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread Greg Ewing
Nick Coghlan wrote: reversed(seq[start:stop:step]) becomes seq[(stop-1)%abs(step):start-1:-step] An rslice builtin would make the latter version significantly easier to read: seq[rslice(start, stop, step)] How would this deal with omitted start and/or stop values? -- Greg

Re: [Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread Paul Moore
On 8/29/06, Greg Ewing [EMAIL PROTECTED] wrote: Nick Coghlan wrote: reversed(seq[start:stop:step]) becomes seq[(stop-1)%abs(step):start-1:-step] An rslice builtin would make the latter version significantly easier to read: seq[rslice(start, stop, step)] How would this

Re: [Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread Guido van Rossum
That discussion on py3k is far from finished. We've also had a similar discussion in the past and ended up with reversed(), which solves the problem on the other end (using a forward slice but iterating backwards). Also, when I saw your subject I thought rslice() was related to rfind(), so the

Re: [Python-Dev] Doc suggestion for Elementtree (for 2.5? a bitlate, I know...)

2006-08-29 Thread Aahz
On Tue, Aug 29, 2006, Greg Ewing wrote: Fredrik Lundh wrote: ET was written years before the certain modules should use camelcase stuff was removed from PEP 8. Maybe so, but I was hoping that additions to the stdlib in this day and age might be adapted to follow modern conventions instead

Re: [Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread Nick Coghlan
Greg Ewing wrote: Nick Coghlan wrote: reversed(seq[start:stop:step]) becomes seq[(stop-1)%abs(step):start-1:-step] An rslice builtin would make the latter version significantly easier to read: seq[rslice(start, stop, step)] How would this deal with omitted start and/or stop

[Python-Dev] Interest in a Python 2.3.6?

2006-08-29 Thread Barry Warsaw
I am considering producing a Python 2.3.6 release, which would of course only be a bug fix maintenance release.  The primary reason is that not all OS distributions have upgraded to Python 2.4 and I think it's worthwhile for us to bless a release that fixes known critical bugs.  I'm willing to

Re: [Python-Dev] Interest in a Python 2.3.6?

2006-08-29 Thread Georg Brandl
Barry Warsaw wrote: I am considering producing a Python 2.3.6 release, which would of course only be a bug fix maintenance release. The primary reason is that not all OS distributions have upgraded to Python 2.4 and I think it's worthwhile for us to bless a release that fixes known

Re: [Python-Dev] Interest in a Python 2.3.6?

2006-08-29 Thread Josiah Carlson
Barry Warsaw [EMAIL PROTECTED] wrote: I am considering producing a Python 2.3.6 release, which would of course only be a bug fix maintenance release. The primary reason is that not all OS distributions have upgraded to Python 2.4 and I think it's worthwhile for us to bless a release

Re: [Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread David Hopwood
Nick Coghlan wrote: A discussion on the py3k list reminded me that translating a forward slice into a reversed slice is significantly less than obvious to many people. Not only do you have to negate the step value and swap the start and stop values, but you also need to subtract one from

Re: [Python-Dev] Adding an rslice() builtin?

2006-08-29 Thread Jean-Paul Calderone
On Tue, 29 Aug 2006 17:44:40 +0100, David Hopwood [EMAIL PROTECTED] wrote: Nick Coghlan wrote: A discussion on the py3k list reminded me that translating a forward slice into a reversed slice is significantly less than obvious to many people. Not only do you have to negate the step value and

Re: [Python-Dev] draft for bug guidelines

2006-08-29 Thread Brett Cannon
On 8/28/06, Steve Holden [EMAIL PROTECTED] wrote: Brett Cannon wrote: Made it the first step.=) -Brett On 8/24/06, *Oleg Broytmann* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: On Thu, Aug 24, 2006 at 12:21:06PM -0700, Brett Cannon wrote: Start a new bugBefore starting a new bug please try

Re: [Python-Dev] gcc 4.2 exposes signed integer overflows

2006-08-29 Thread Armin Rigo
Hi Tim, On Sat, Aug 26, 2006 at 08:37:46PM -0400, Tim Peters wrote: [Thomas Wouters] Why not just ... x == LONG_MIN? it's better (when possible) not to tie the code to that `x` was specifically declared as type long (e.g., just more stuff that will break if Python decides to make its

Re: [Python-Dev] Interest in a Python 2.3.6?

2006-08-29 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 29, 2006, at 11:29 AM, Georg Brandl wrote: There's one problem: it was thought for a long time that there wouldn't be any more 2.3 releases, so bug fixes were applied only in the head and 2.4 branch. If there will be a 2.3.6, it

[Python-Dev] 32-bit and 64-bit python on Solaris

2006-08-29 Thread Laszlo (Laca) Peter
Hi, I work in the team that delivers python on Solaris. Recently we've been getting requests for delivering python in 64-bit as well as in 32-bit. As you probably know, Solaris can run 64-bit and 32-bit binaries on the same system, but of course you can't mix and match shared objects with

[Python-Dev] Small Py3k task: fix modulefinder.py

2006-08-29 Thread Guido van Rossum
Is anyone familiar enough with modulefinder.py to fix its breakage in Py3k? It chokes in a nasty way (exceeding the recursion limit) on the relative import syntax. I suspect this is also a problem for 2.5, when people use that syntax; hence the cross-post. There's no unittest for modulefinder.py,

Re: [Python-Dev] 32-bit and 64-bit python on Solaris

2006-08-29 Thread Tim Peters
[Laszlo (Laca) Peter] I work in the team that delivers python on Solaris. Recently we've been getting requests for delivering python in 64-bit as well as in 32-bit. As you probably know, Solaris can run 64-bit and 32-bit binaries on the same system, but of course you can't mix and match

[Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented

2006-08-29 Thread Raymond Hettinger
I would like to see the changes to the decimal module reverted for the Py2.5 release. Currently, the code in the decimal module implements the context manager as a separate class instead of incorporating it directly in decimal.Context. This makes the API unnecessarily complex and is not

Re: [Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented

2006-08-29 Thread Phillip J. Eby
At 05:20 PM 8/29/2006 -0700, Raymond Hettinger wrote: * The implementation's doc string examples were not tested and don't work (this is a deep error). One reads: with decimal.getcontext() as ctx: ctx.prec += 2 s = ... return +s To get this to work with the current

Re: [Python-Dev] 32-bit and 64-bit python on Solaris

2006-08-29 Thread Laszlo (Laca) Peter
On Tue, 2006-08-29 at 19:07 -0400, Tim Peters wrote: I work in the team that delivers python on Solaris. Recently we've been getting requests for delivering python in 64-bit as well as in 32-bit. As you probably know, Solaris can run 64-bit and 32-bit binaries on the same system, but of

Re: [Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented

2006-08-29 Thread Raymond Hettinger
Raymond Hettinger wrote: I would like to see the changes to the decimal module reverted for the Py2.5 release. Currently, the code in the decimal module implements the context manager as a separate class instead of incorporating it directly in decimal.Context. That should read ... as a

Re: [Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented

2006-08-29 Thread Raymond Hettinger
Phillip J. Eby wrote: At 05:20 PM 8/29/2006 -0700, Raymond Hettinger wrote: * The implementation's doc string examples were not tested and don't work (this is a deep error). One reads: with decimal.getcontext() as ctx: ctx.prec += 2 s = ... return +s To get

Re: [Python-Dev] gcc 4.2 exposes signed integer overflows

2006-08-29 Thread Anthony Baxter
On Wednesday 30 August 2006 08:57, Tim Peters wrote: Speaking of which, I saw no feedback on the proposed patch in http://mail.python.org/pipermail/python-dev/2006-August/068502.html so I'll just check that in tomorrow. Fine with me! thanks, Anthony -- Anthony Baxter [EMAIL

Re: [Python-Dev] gcc 4.2 exposes signed integer overflows

2006-08-29 Thread Anthony Baxter
On Wednesday 30 August 2006 08:57, Tim Peters wrote: Speaking of which, I saw no feedback on the proposed patch in http://mail.python.org/pipermail/python-dev/2006-August/068502.html so I'll just check that in tomorrow. This should also be backported to release24-maint and

Re: [Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented

2006-08-29 Thread Phillip J. Eby
At 05:57 PM 8/29/2006 -0700, Raymond Hettinger wrote: Phillip J. Eby wrote: At 05:20 PM 8/29/2006 -0700, Raymond Hettinger wrote: * The implementation's doc string examples were not tested and don't work (this is a deep error). One reads: with decimal.getcontext() as ctx: