Re: [Python-Dev] Instance variable access and descriptors

2007-06-12 Thread Brian Harring
On Tue, Jun 12, 2007 at 08:10:26PM +1200, Greg Ewing wrote: > Phillip J. Eby wrote: > > ...at the cost of slowing down access to properties and __slots__, by > > adding an *extra* dictionary lookup there. > > Rather than spend time tinkering with the lookup order, > it might be more productive to

Re: [Python-Dev] best practices stdlib: purging xrange

2007-05-07 Thread Brian Harring
On Tue, May 08, 2007 at 09:14:02AM +1000, Anthony Baxter wrote: > I'd like to suggest that we remove all (or nearly all) uses of > xrange from the stdlib. A quick scan shows that most of the usage > of it is unnecessary. With it going away in 3.0, and it being > informally deprecated anyway, it

Re: [Python-Dev] PEP 30XZ: Simplified Parsing

2007-05-02 Thread Brian Harring
On Wed, May 02, 2007 at 01:53:01PM -0400, A.M. Kuchling wrote: > On Wed, May 02, 2007 at 04:42:09PM +0100, Michael Foord wrote: > > Implicit string concatenation is massively useful for creating long > > strings in a readable way though: > > This PEP doesn't seem very well-argued: "It's a common

Re: [Python-Dev] a feature i'd like to see in python #1: better iteration control

2006-12-04 Thread Brian Harring
On Mon, Dec 04, 2006 at 07:15:35PM +0100, "Martin v. L??wis" wrote: > Brian Harring schrieb: > > For dict; it actually *cannot* work. You can't remove keys from a > > dict as you're iterating over it (can change the val of a key, but not > > remove the

Re: [Python-Dev] a feature i'd like to see in python #1: better iteration control

2006-12-03 Thread Brian Harring
On Sun, Dec 03, 2006 at 08:35:58PM -0600, Ben Wing wrote: > but i still don't see why supporting iter.delete() is so wrong. clearly > it doesn't need to work on files or other such things where it doesn't > make sense. > > before you diss this completely, note that java supports exactly the > s

Re: [Python-Dev] a feature i'd like to see in python #1: better iteration control

2006-12-03 Thread Brian Harring
On Sun, Dec 03, 2006 at 06:24:17AM -0600, Ben Wing wrote: > many times writing somewhat complex loops over lists i've found the need > to sometimes delete an item from the list. currently there's no easy > way to do so; basically, you have to write something like > > i = 0 > while i < len(list):

Re: [Python-Dev] Suggestion for a new built-in - flatten

2006-09-22 Thread Brian Harring
On Fri, Sep 22, 2006 at 12:05:19PM -0700, Bob Ippolito wrote: > On 9/22/06, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > > > Michael Foord <[EMAIL PROTECTED]> wrote: > > > > > > Hello all, > > > > > > I have a suggestion for a new Python built in function: 'flatten'. > > > > This has been brought