module documentation

MemoryDataSet is a data set implementation which handles in-memory data.

Function _copy_with_mode Returns the copied data using the copy mode specified. If no copy mode is provided, then it is inferred based on the type of the data.
Function _infer_copy_mode Infers the copy mode to use given the data type.
Constant _EMPTY Undocumented
def _copy_with_mode(data: Any, copy_mode: str) -> Any: (source)

Returns the copied data using the copy mode specified. If no copy mode is provided, then it is inferred based on the type of the data.

Parameters
data:AnyThe data to copy.
copy_mode:strThe copy mode to use, one of "deepcopy", "copy" and "assign".
Returns
AnyThe data copied according to the specified copy mode.
Raises
DataSetErrorIf copy_mode is specified, but isn't valid (i.e: not one of deepcopy, copy, assign)
def _infer_copy_mode(data: Any) -> str: (source)

Infers the copy mode to use given the data type.

Parameters
data:AnyThe data whose type will be used to infer the copy mode.
Returns
strOne of "copy", "assign" or "deepcopy" as the copy mode to use.

Undocumented

Value
object()