Hi,
I can write and read pickle files, no problem.
But if I lookup how to merge a pickle file to an existing pickle file, I get somewhat confused,
I find:
a) I have a text file or list that i can append to the old_pickle, line by line.
b) I have said text also as a pickle file that i could append to the old_pickle.
What is the best way?
Obviously old and new files follow the same format.
thx,
Paul
I can write and read pickle files, no problem.
But if I lookup how to merge a pickle file to an existing pickle file, I get somewhat confused,
I find:
pickle.dump((pickle_new), open(old_pickle, 'ab')) # does not seem to workI have control over the alternatives:
a) I have a text file or list that i can append to the old_pickle, line by line.
b) I have said text also as a pickle file that i could append to the old_pickle.
What is the best way?
Obviously old and new files follow the same format.
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.