Create a copy of the current one.
(self)
| 217 | self.soft_frame = False |
| 218 | |
| 219 | def copy(self) -> "Frame": |
| 220 | """Create a copy of the current one.""" |
| 221 | rv = object.__new__(self.__class__) |
| 222 | rv.__dict__.update(self.__dict__) |
| 223 | rv.symbols = self.symbols.copy() |
| 224 | return rv |
| 225 | |
| 226 | def inner(self, isolated: bool = False) -> "Frame": |
| 227 | """Return an inner frame.""" |