r0g wrote: > pbienst wrote: >> I would like to bundle up a number of files in a tar file and send it >> over a HTTP connection, but I would like to do this without creating >> the tar file on disk first. >> > > Stringio lets you treat a strings as a files... > > http://docs.python.org/library/stringio.html > > Roger.
... though that does mean that the whole tar file has to be created before it can be sent, I suspect. If it will comfortably fit into memory that shouldn't matter, of course. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS: http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python-list