Data persistence
What means data persistence? Persistence is "the continuance of an effect after its reason is eliminated". In the context of storing data in a computer system, this implies that the data makes it through after the process with which it was produced has actually ended. To put it simply, for a data shop to be considered persistent, it should contact non-volatile storage space. The modules defined in this chapter assistance saving Python data in a persistent form on disk. The pickle as well as marshal modules can transform many Python data kinds into a stream of bytes and afterwards recreate the things from the bytes. The numerous DBM-related modules support a household of hash-based file formats that store a mapping of strings to various other strings. The typical library consists of a range of modules for continuing data. One of the most common pattern for saving data from Python items for reuse is to serialize them with pickle and afterwards either create them straight to a...