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_stream) :
     from cPickle import load,dumps
     while 1 :
         yield dumps(load(my_stream))

without the overhead associated with unpickling objects
just to pickle them again ?

TIA, Boris Borcic
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to