pipe into preallocated buffer?

Kushal Kumaran kushal.kumaran+python at gmail.com
Thu Jan 12 00:23:47 EST 2012


On Wed, Jan 4, 2012 at 8:05 PM, Mihai Badoiu <mbadoiu at gmail.com> wrote:
> is there a way to pipe directly into a preallocated buffer?
>  (subprocessing.pipe.stdout)
>

Does io.StringIO fit your needs?

http://docs.python.org/py3k/library/io.html#io.StringIO

-- 
regards,
kushal



More information about the Python-list mailing list