A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/015024.html below:

[Python-Dev] strop vs. string

[Python-Dev] strop vs. string [Python-Dev] strop vs. stringGreg 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/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4