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/2008-April/078957.html below:

[Python-Dev] cStringIO buffer interface

[Python-Dev] cStringIO buffer interface [Python-Dev] cStringIO buffer interfaceGuido van Rossum guido at python.org
Wed Apr 30 18:51:25 CEST 2008
On Wed, Apr 30, 2008 at 9:36 AM, Farshid Lashkari <flashk at gmail.com> wrote:
>  I was just curious as to why cStringIO objects don't implement the
>  buffer interface.  cStringIO objects seem similar to string and array
>  objects, and those support the buffer protocol. Is there a reason
>  against allowing cStringIO to support at least the read buffer
>  interface, or is just that nobody has considered it until now?

Well, for one, it would mean you could no longer exchange a StringIO
instance for a cStringIO instance.

Also, what's the compelling use case you're thinking of?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

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