Python speed-up

Alex Martelli aleaxit at
Wed Sep 22 23:20:08 CEST 2004

Gerrit <gerrit at> wrote:
> Ah. Am I correct to conclude that StringIO should either be rewritten
> concatenating strings, or be deprecated, or both?

StringIO is precious in many cases which have nothing to do with
"concatenating string" but are rather "easily capturing in memory the
input/output of some piece of code which writes to / reads from a
file-like object", so deprecating it would be unwarranted.  A little
rewrite might perhaps be warranted, admittedly;-).


More information about the Python-list mailing list