Python pickling

What exactly is pickling and what can one mean with (allow_pickle =false) in the argument of genfromtext?

Preparing objects in memory to be stored on disk so that they can retrieved for later use is pickling. Its a non-trivial exercise as objects in memory may refer other objects (via their memory addresses) which will have no meaning once the object is stored on disk. As reading those objects will almost certainly place them in different memory locations.

Pickling takes care of such issues which may arise when storing objects etc to disk. Link below provides more detail

1 Like