Assuming that the items of my_stream share no content (they are
dumps of db cursor fetches), is there a simple way to do the
equivalent of
def pickles(my_stre am) :
from cPickle import load,dumps
while 1 :
yield dumps(load(my_s tream))
without the overhead associated with unpickling objects
just to pickle them again ?
TIA, Boris Borcic
dumps of db cursor fetches), is there a simple way to do the
equivalent of
def pickles(my_stre am) :
from cPickle import load,dumps
while 1 :
yield dumps(load(my_s tream))
without the overhead associated with unpickling objects
just to pickle them again ?
TIA, Boris Borcic
Comment