![]() ![]() pyc files you get when the interpreter imports a Python module. It exists mainly to read and write the compiled bytecode of Python modules, or the. The marshal module is the oldest of the three listed above. In addition, Python supports XML, which you can also use to serialize objects. Python offers three different modules in the standard library that allow you to serialize and deserialize objects: One of the most common uses is saving the state of a neural network after the training phase so that you can use it later without having to redo the training. ![]() Serialization can be used in a lot of different situations. The reverse process, which takes a stream of bytes and converts it back into a data structure, is called deserialization or unmarshalling. You may also see this process referred to as marshalling. In Python, serialization allows you to take a complex object structure and transform it into a stream of bytes that can be saved to a disk or sent over a network. The serialization process is a way to convert a data structure into a linear form that can be stored or transmitted over a network. Free Bonus: 5 Thoughts On Python Mastery, a free course for Python developers that shows you the roadmap and the mindset you’ll need to take your Python skills to the next level. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |