I want to make (and decode) a single string composed of several python pickles.
Is there a character or sequence that is safe to use as a separator in this string?
I should be able to make the string like so:
s = pickle.dumps(o1) + PICKLE_SEPARATOR + pickle.dumps(o2) + PICKLE_SEPARATOR + pickle.dumps(o3) ...
I should be able to take this string and reconstruct the objects like so:
[pickle.loads(s) for s in input.split(PICKLE_SEPARATOR)]
What should PICKLE_SEPARATOR be?
For the curious, I want to send pickled objects to redis using APPEND. (though perhaps I'll just use RPUSH)