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 |
Is map faster than for loop python?
Are tuples hashable?
What is the incorrect declaration of a set?
What advantages do numpy arrays offer over (nested) python lists?
Which software is used for python?
Which data type you prefer to implement when deal with seuential data?
Which is better perl or python?
How do you split a list into evenly sized chunks in python?
What is the keyword to import a module in python?
Mention what is the difference between Django, Pyramid, and Flask.
Does python have private methods?
How can you unsign or delete variable in python?