diff --git a/src/tinySelf/vm/object_layout.py b/src/tinySelf/vm/object_layout.py index 4beacd0..4d47c66 100755 --- a/src/tinySelf/vm/object_layout.py +++ b/src/tinySelf/vm/object_layout.py @@ -360,6 +360,16 @@ def _copy_internals_to_clone(self, clone): @jit.unroll_safe def _copy_with_primitives(self, clone): + """ + Copy values in this Object into the `clone`. Handle primitive functions + so that they have set correct `scope_parent`. + + Args: + clone (Object): Object into which are the slots cloned. + + Returns: + Object: `clone` is returned back. + """ self._copy_internals_to_clone(clone) if self._slot_values is not None: @@ -453,7 +463,7 @@ def version(self): class _ObjectWithMetaOperations(_ObjectWithMapEncapsulation): - def meta_add_slot(self, slot_name, value, check_duplicates=False): + def meta_add_slot(self, slot_name, value): """ check_duplicates: make sure that one value is stored only once """