DataInput and DataOutput in python

Not directly, but you might instead implement a native Python module to write/read data to/from disk. Depending on the data types, I usually implement the pickle or json modules:

There’s also the native shelve module, which seems to be functionally similar to structuring the data into as dictionary and pickling it (have not tried it myself though).

1 Like