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

explain the reduce() function?

532


Which statement of python is used whenever a statement is required syntactically but the program needs no action?

451


Write a program to produce fibonacci series in python.

452


What does == mean?

460


How do you do data abstraction in python?

444






What does split () do in python?

446


Why python is faster than java?

464


What is pytest in python?

453


Explain about different blocks in exception handling?

450


What is argument in a function?

475


How is Python used in web development?

492


What is split() function?

494


What are your weaknesses examples?

478


Whats the difference between input() and raw_input()?

469


What is python idle used for?

444