Le mercredi 22 janvier 2020 à 21:35 +, Simon King a écrit :
> Consequently, when unpickling my old data with Python-3, I want the
> Python-2 str to be interpreted as bytes. However, Python-3 insists on
> misinterpreting it as str, and I have trouble to turn that str into
> an appropriate bytes.
Hi!
I have (Sage-related) data pickled with Python-2. Part of the data is
binary data put into a Python-2 str.
Now, with Python-3, the binary data is put into bytes.
Consequently, when unpickling my old data with Python-3, I want the
Python-2 str to be interpreted as bytes. However, Python-3 ins