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 do you remove duplicates from a list in python whilst preserving order?
Why do arrays have a 0 in it?
Is it easier than Django bottle?
How do I interface to c++ objects from python?
Explain class __init__()?
What are different methods to copy an object in python?
What is PEP8?
Do you know what the difference between lists and tuples is? Can you give
What are the steps required to make a script executable on Unix?
What is super () __ init__ in python?
How does python sort work?
Explain me what are the principal differences between the lambda and def?