What does it mean for an object to be picklable (or pickle-able)?

前端 未结 3 847
小鲜肉
小鲜肉 2020-12-14 14:30

Python docs mention this word a lot and I want to know what it means! Googling doesn\'t help much..

3条回答
  •  半阙折子戏
    2020-12-14 14:45

    It simply means it can be serialized by the pickle module. For a basic explanation of this, see What can be pickled and unpickled?. The pickle protocol provides more details, and shows how classes can customize the process.

提交回复
热议问题