[Python-Dev] cStringIO vs io.BytesIO
ncoghlan at gmail.com
Thu Jul 17 03:28:16 CEST 2014
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 (
> > Do you know if there a workaround? Maybe there is some stdlib part that
> > missing, or a module on PyPI? It is not that hard to write an own
> > won't do copies (or to port [c]StringIO to 3.x), but I wonder if there
> > existing solution or plans to fix it in Python itself - this BytesIO
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev