Antoine Pitrou pit...@free.fr added the comment:
This was committed in r84562.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5506
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch implementing getbuffer(), together with tests.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file18731/bytesiobuf2.patch
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
There was an unused weakreflist member.
--
Added file: http://bugs.python.org/file18732/bytesiobuf2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5506
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file18731/bytesiobuf2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5506
___
Changes by Antoine Pitrou pit...@free.fr:
--
components: +IO
nosy: +amaury.forgeotdarc, benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5506
___
Antoine Pitrou pit...@free.fr added the comment:
Thinking about it, I'm not sure this would be a good idea to do this by
default. There is an ambiguity where it's not obvious if the buffer would
contain the whole data or only the bytes after the current position.
I think perhaps an explicit
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5506
___
___
Georg Brandl ge...@python.org added the comment:
Is this still unimplemented?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5506
___
Antoine Pitrou pit...@free.fr added the comment:
Yes.
I don't remember which use case I was thinking about when I suggested
this, but it may be useful to e.g. write() all the data to a file object
without actually making a copy (getvalue() does).
--
New submission from Antoine Pitrou pit...@free.fr:
It may be logical for BytesIO to support the buffer protocol (readable
/and/ writable).
--
components: Library (Lib)
messages: 83740
nosy: pitrou
priority: normal
severity: normal
stage: test needed
status: open
title: io.BytesIO
10 matches
Mail list logo