How to read() twice from file-like objects (and get some data)?

askar.bektassov at gmail.com askar.bektassov at gmail.com
Wed Sep 27 23:47:56 CEST 2006


Exactly what I needed!

import StringIO from StringIO
...
content=response.read()
forms=ParseFile(StringIO(content), response.geturl())
...

Thank you all!




More information about the Python-list mailing list