Mok-Kong Shen wrote:
(It means that I have to pickle out the list to a file and read in the content of the file in order to have it as a bytearray etc. etc.)
No, you don't -- pickle.dumps() returns the pickled data as a bytes object instead of writing it to a file. -- Greg -- https://mail.python.org/mailman/listinfo/python-list