[Python-Dev] strop vs. string

Greg Stein gstein@lyra.org
Sun, 3 Jun 2001 02:10:36 -0700


On Sun, Jun 03, 2001 at 03:55:43AM -0400, Tim Peters wrote:
> [Greg Stein]
> > ...
> > I was saying that, at the Python level, using a loop and doing b[i] into
> > a buffer/string/unicode object would seem to be relatively rare. b[0]
> > and stuff is reasonably common.
> 
> Well, at the Python level buffer objects seem never to be used, probably

I'm talking about string objects and unicode objects, too. The point is that
b[i] loops don't have to be all that speedy because it isn't used often.

> because all the people who know about them don't advertise it because it's
> an easy way to provoke core dumps now.

Easy? Depends on what you use them with.

>...
> >> I take that as "yes" to my "nobody cares about it enough to
> >> maintain it?".  In that light, Guido's ambivalence is indeed
> >> surprising <wink>.
> 
> > Eh? I'll maintain the thing, but you're confusing that with adding more
> > features into it. Different question.
> 
> I haven't asked for new features, just that what's already there get fixed:
> Python-level buffer objects are unsafe, the docs remain incomplete,

I'll fix the code.

> there's
> random stuff like file.readinto() that's not documented at all (could be
> that's the only one -- it's certainly "discovered" on c.l.py often enough,
> though),

Find another goat to screw for that one. I don't know anything about it.

Hmm... Using the "annotate" feature of ViewCVS, I see that Guido added it.
Go blame him if you want to scream about that function and its lack of doc.

> and there are no buffer tests in the std test suite.  The work to
> introduce the type wasn't completed, nobody works on it, and finishing work
> 3 years late doesn't count as "new feature" in my book <wink>.

Now you're just being bothersome. You want all that stuff, then feel free.
I'll volunteer to do the code. You can go beat some heads, or find other
volunteers.

I'll do the code fixing just to placate you, and to get all this ranting
about the buffer object to quiet down, but not because I'm joyful to do it.

not-cheers,
-g

-- 
Greg Stein, http://www.lyra.org/