Re: [sage-devel] Python 2->3 incompatibility in unpickling

2020-01-22 Thread 'Julien Puydt' via sage-devel
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.

[sage-devel] Python 2->3 incompatibility in unpickling

2020-01-22 Thread Simon King
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