httplib + FakeSocket: how not to download whole file in memory

Olaf Trygve Berglihn olafb+usenet at pvv.org
Thu Feb 15 08:53:51 EST 2001


I'm using httplib to download files over https. However, the
FakeSocket-construction loads the whole file in memory and returns it
as a StringIO-object.

Does anyone have a suggestion how to avoid this, i.e. get a normal
filepointer construction from the makefile-method and not grabbing all
my memory.

Olaf
-- 
Olaf Trygve Berglihn <olafb+usenet at pvv.org>



More information about the Python-list mailing list