Explain pickling and unpickling.

Answer Posted / chaitanya

pickle is a standard module which serializes & de-serializes a python object structure.

pickle module accepts any python object converts it into a string representation & dumps it into a file(by using dump() function) which can be used later, process is called pickling. Whereas unpickling is process of retrieving original python object from the stored string representation for use.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a lambda function?

431


How do I run a python script?

467


Tell me what are different methods to copy an object in python?

455


How the memory is managed in python?

445


What is the use of enumerate() in python?

430






Is python a compiled or interpreted language?

445


Are lambda functions faster python?

465


What are the differences in the deep and shallow copy?

475


How will you reload a module of python, explain?

424


What is python encapsulation?

441


What is kwargs in python?

435


How do you insert a line break in python?

425


What is split used for?

427


How can you unsign or delete variable in python?

471


What does == mean?

449