KnowledgeBoat Logo

Computer Science

Define pickling in Python. Explain serialization and deserialization of Python object.

Python File Handling

3 Likes

Answer

The pickling process serializes objects and converts them into a byte stream so that they can be stored in binary files.

Serialization is the process of transforming data or an object in memory (RAM) into a stream of bytes called byte streams. These byte streams, in a binary file, can then be stored on a disk, in a database, or sent through a network. The serialization process is also called pickling. Deserialization or unpickling is the inverse of the pickling process, where a byte stream is converted back into a Python object.

Answered By

2 Likes


Related Questions