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/2002-July/026362.html below:

[Python-Dev] Fw: Behavior of buffer()

[Python-Dev] Fw: Behavior of buffer() [Python-Dev] Fw: Behavior of buffer()M.-A. Lemburg mal@lemburg.com
Fri, 12 Jul 2002 18:58:41 +0200
Guido van Rossum wrote:
> I'm a little surprised.  Raymond Hettinger checked in a change that
> makes all slices of buffer objects return strings.  His comments on SF
> bug 546434 say that only one person replied and that they agreed
> returning strings was the better solution.  But that's not how I read
> the only response to his query that I see in python-dev, from Scott
> Gilbert:

Interesting. I must have skipped that message.

IMHO, all slices of buffer object should return buffer objects,
but since all Python releases return strings, I guess this is too
late to change.

Note that the only case where a buffer object
is returned in Python 2.x (x < 3) is if you write
buffer()[:], i.e. you want a copy of the buffer object.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/





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