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 are operators?
How do I start learning python?
What is the input function in python?
Is python interpreted or compiled?
How do I check whether a file exists without exceptions?
What is the difference between range() and xrange() functions in python?
What is __ init__ in python?
What mode is used for both writing and reading in binary format in file.?
What is python explain the advantages of using python?
How to find whether string is alphanumeric or not?
What does the 'yield' keyword do in python?
Tell me about a few string operations in python?