Martin v. Löwis <mar...@v.loewis.de> added the comment:

I'm -1 on this approach; I don't think yet another container type is the right 
solution, given that we have already plenty of them.

If you want to avoid creating large lists, then the StringIO type should 
already provide that. So I wonder why these functions couldn't be rewritten to 
use StringIO.

If you really want to use this approach, I'd try to avoid allocating the large 
list if there are only few substrings. I.e. allocate it only when flushing, and 
only if the flush is not the final flush.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12911>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to