Copy this node and return the new one. Creates and returns a copy of the node in the given `newparent`, with the given `newname`. If `recursive` copy is stated, all descendents are copied as well. Additional keyword arguments may affect the way that the copy is mad
(
self,
newparent: Group,
newname: str,
recursive: bool,
_log: bool = True,
**kwargs,
)
| 702 | self._v_file._log("MOVE", oldpathname, self._v_pathname) |
| 703 | |
| 704 | def _g_copy( |
| 705 | self, |
| 706 | newparent: Group, |
| 707 | newname: str, |
| 708 | recursive: bool, |
| 709 | _log: bool = True, |
| 710 | **kwargs, |
| 711 | ) -> Node: |
| 712 | """Copy this node and return the new one. |
| 713 | |
| 714 | Creates and returns a copy of the node in the given `newparent`, |
| 715 | with the given `newname`. If `recursive` copy is stated, all |
| 716 | descendents are copied as well. Additional keyword arguments may |
| 717 | affect the way that the copy is made. Unknown arguments must be |
| 718 | ignored. On recursive copies, all keyword arguments must be |
| 719 | passed on to the children invocation of this method. |
| 720 | |
| 721 | If `_log` is false, the change is not logged. This is *only* |
| 722 | intended to be used by ``_g_copy_as_child()`` as a means of |
| 723 | optimising sub-tree copies. |
| 724 | |
| 725 | """ |
| 726 | raise NotImplementedError |
| 727 | |
| 728 | def _g_copy_as_child(self, newparent: Group, **kwargs) -> Node: |
| 729 | """Copy this node as a child of another group. |
no outgoing calls
no test coverage detected