<<<<<<< HEAD What is unpickling? ======= What is unpickling? >>>>>>> aa3a4cb6af4a039d6fbe788caae4e7c9eda07af7

Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) What is unpickling?

(A) it is used for object serialization
(B) it is used for object deserialization
(C) none of the mentioned
(D) all of the mentioned
Correct answer : Option (B) - it is used for object deserialization

Explanation:
 we have been working with simple textual data. what if we are working with objects rather than simple text? for such situations, we can use the pickle module. this module serializes python objects. the python objects are converted into byte streams and written to text files. this process is called pickling. the inverse operation, reading from a file and reconstructing objects is called deserializing or unpickling.

Share

Discusssion

Login to discuss.