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/1999-August/000714.html below:

[Python-Dev] buffer interface considered harmful

[Python-Dev] buffer interface considered harmful [Python-Dev] buffer interface considered harmfulFredrik Lundh fredrik@pythonware.com
Mon, 16 Aug 1999 09:06:43 +0200
> I think the buffer interface was introduced in 1.5 (by Jack?). I added
> the 8-bit character buffer slot and buffer objects in 1.5.2.
> 
> > from array import array
> > 
> > a = array("f", [0]*8192)
> > 
> > b = buffer(a)
> > 
> > for i in range(1000):
> >     a.append(1234)
> > 
> > print b
> > 
> > in other words, the buffer interface should
> > be redesigned, or removed.
> 
> I don't understand what you believe is weird here.

did you run that code?

it may work, it may bomb, or it may generate bogus
output. all depending on your memory allocator, the
phase of the moon, etc. just like back in the C/C++
days...

imo, that's not good enough for a core feature.

</F>




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