executorlib.standalone.serialize.cloudpickle_register

executorlib.standalone.serialize.cloudpickle_register#

executorlib.standalone.serialize.cloudpickle_register(ind: int = 2)[source]#

Cloudpickle can either pickle by value or pickle by reference. The functions which are communicated have to be pickled by value rather than by reference, so the module which calls the map function is pickled by value. cloudpipe/cloudpickle inspect can help to find the module which is calling executorlib https://docs.python.org/3/library/inspect.html to learn more about inspect another good read is: http://pymotw.com/2/inspect/index.html#module-inspect 1 refers to 1 level higher than the map function

Parameters:

ind (int) – index of the level at which pickle by value starts while for the rest pickle by reference is used