Pickling

Pickle translates almost any type of object into a string. pickle.dumps takes an object as a parameter and returns a string representation.

                       

Although the new object has same value as the old, it is not the same object. In other words, pickling and then unpickling has the same effect as copying the object.

 

from Thinking in Python

 

posted @ 2014-09-23 22:10  平静缓和用胸音说爱  阅读(190)  评论(0编辑  收藏  举报