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/2010-September/103409.html below:

[Python-Dev] Buffer protocol for io.BytesIO?

[Python-Dev] Buffer protocol for io.BytesIO? [Python-Dev] Buffer protocol for io.BytesIO?Hrvoje Niksic hrvoje.niksic at avl.com
Fri Sep 3 09:51:11 CEST 2010
On 09/02/2010 10:35 PM, Antoine Pitrou wrote:
>  Then it came to me then perhaps it would be too automatic. So I'm
> currently floating between:
> - add implicit buffer protocol support to BytesIO objects
> - add explicit buffer protocol support through the call of a
>    getbuffer() method, which would return a small intermediate object
>    supporting the buffer protocol on behalf of the original BytesIO
>    object
>
> What do you think would be better?

getbuffer() sounds better.  Accessing buffer contents is a nice feature, 
but one shouldn't be able to do it by accident.
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