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 |
Can we override a constructor?
Tell me what is pep 8?
What does making the cpython different from python?
How variables are declared in python?
Explain how to delete a file in Python?
How do I put python to sleep?
Why is python oop?
Can __ init __ return value?
What is the module and package in python?
What is flask-wtf and what are their features?
What are the benefits of flask?
How do I emulate os.kill() in windows?