[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This was committed in r84562. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +IO nosy: +amaury.forgeotdarc, benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file18731/bytesiobuf2.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: There was an unused "weakreflist" member. -- Added file: http://bugs.python.org/file18732/bytesiobuf2.patch ___ Python tracker ___ _

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou 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

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-01 Thread Antoine Pitrou
Antoine Pitrou 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 method (getbuffe

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-08-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5506] io.BytesIO doesn't support the buffer protocol

2009-04-05 Thread Antoine Pitrou
Antoine Pitrou 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). -- ___ Python trac

[issue5506] io.BytesIO doesn't support the buffer protocol

2009-04-05 Thread Georg Brandl
Georg Brandl added the comment: Is this still unimplemented? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5506] io.BytesIO doesn't support the buffer protocol

2009-03-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 doesn't support the b