InterviewSolution
Saved Bookmarks
| 1. |
What is pickling and unpickling? |
|
Answer» Python library offers a feature - serialization out of the box. Serializing an object refers to transforming it into a format that can be stored, so as to be able to deserialize it, later on, to obtain the original object. Here, the pickle module comes into play. Pickling:
Unpickling:
Note: Python has another, more primitive, serialization module called MARSHALL, which exists primarily to support .pyc files in Python and differs significantly from the pickle. |
|