On Fri, Dec 19, 2008 at 10:11 AM, Gabriel Genellina <gagsl-...@yahoo.com.ar> wrote: > But your code does *exactly* that, it reads the whole file in memory: > >> def mkBuffer(fd): >> buffer = StringIO() >> buffer.write(fd.read()) >> ... > > That mkBuffer function has no useful purpose IMHO, just remove it.
It was a mistake in my implementation at the time of writing :) I've since fixed and removed it! Thanks though :) cheers James -- http://mail.python.org/mailman/listinfo/python-list