mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
https://stackoverflow.com/a/44888113/632035 Pickle can't deal with loading sets (and probably dicts) of objects with custom __hash__ functions that depend on their state because __hash__ can be called before __setstate__. Make the hash function stupider (but still correct) by just relying on the object ID.