[Python-Dev] strop vs. string

Greg Stein gstein@lyra.org
Fri, 25 May 2001 04:59:23 -0700


On Fri, May 25, 2001 at 10:23:10AM +0200, M.-A. Lemburg wrote:
> Greg Ewing wrote:
> > "M.-A. Lemburg" <mal@lemburg.com>:
> > 
> > > BTW, wouldn't it suffice to add these methods to buffer objects ?
> > > Then you could write: buffer(ob).find('.').
> > 
> > Aren't buffer objects as they're currently implemented
> > inherently dangerous?
> 
> Why should they be ?

The buffer object caches the pointer from getreadbuffer and friends. If the
target object changes that pointer (internally), then the buffer object's
value is stale.

But that is a bug fix; it is independent of the discussion at hand.

Cheers,
-g

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