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

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

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

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

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

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

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

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

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

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

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

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

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

2010-08-08 Thread Terry J. Reedy
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 ___ ___

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

2009-04-05 Thread Georg Brandl
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 ___

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

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

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

2009-03-18 Thread Antoine Pitrou
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