pallets-eco / flask-session

Server side session extension for Flask
https://flask-session.readthedocs.io
BSD 3-Clause "New" or "Revised" License
501 stars 239 forks source link

Pickle protocol fix #34

Closed moskitos80 closed 7 months ago

moskitos80 commented 8 years ago

Error when using Python 3 + Unicode. Only pickle protocol version 0 and 1 can accurately convert the data to a string, because the storage we use the "Text" type field. I was the reason that the data is simply not saved to the database, without any errors. In Python 3 pickle.dumps function protocol version installed by default 3. Therefore calls pickle.dumps() to explicitly specify the protocol version 0. This was done.

Lxstr commented 7 months ago

Python 2 no longer supported