[Python-Dev] cStringIO vs io.BytesIO (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Thu Jul 17 03:28:16 CEST 2014
- Previous message: [Python-Dev] cStringIO vs io.BytesIO
- Next message: [Python-Dev] cStringIO vs io.BytesIO
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 16 Jul 2014 20:00, <dw+python-dev at hmmz.org> wrote:
On Thu, Jul 17, 2014 at 03:44:23AM +0600, Mikhail Korobov wrote: > I believe this problem affects tornado ( https://github.com/tornadoweb/tornado/ > Do you know if there a workaround? Maybe there is some stdlib part that I'm > missing, or a module on PyPI? It is not that hard to write an own wrapper that > won't do copies (or to port [c]StringIO to 3.x), but I wonder if there is an > existing solution or plans to fix it in Python itself - this BytesIO use case > looks quite important.
Regarding a fix, the problem seems mostly that the StringI/StringO specializations were removed, and the new implementation is basically just a StringO.
Right, I don't think there's a major philosophy change here, just a missing optimisation that could be restored in 3.5.
Cheers, Nick. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140716/10e59ff7/attachment.html>
- Previous message: [Python-Dev] cStringIO vs io.BytesIO
- Next message: [Python-Dev] cStringIO vs io.BytesIO
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]