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 |
What language is python based on?
How do you convert string as a variable name in python?
Why do we use __ init __ in python?
What are the reserved words in python?
Is python used for frontend or backend?
What is the difference between the shallow copy and deep copy in python?
What does ‘#’ symbol do in python?
Is r easier than python?
What is gil in python?
How long can an identifier be in python?
How you can minimize the memcached server outages in your python development?
What is the difference between = and == in python?