Explain pickling and unpickling.
Answer / 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 |
How is “self” explicitly defined in a method?
Is python strongly typed?
What is difference between input and raw_input in python?
How do you perform pattern matching in python?
What are the differences between python 2.x and python 3.x?
What is strip in python?
What is += in python mean?
What is the dogpile effect?
In python,how to read a file line-by-line into a list?
How does numpy arange work?
What is difference between tuple and list?
Is anaconda the same as python?