core.lifecycle
Lifecycle protocol declarations. These interfaces do not by themselves establish ownership or deep-copy guarantees.
All modules · Writing docstrings
type DropRelease resources when the interpreter drops a value.
Drop.drop
Section titled “Drop.drop”func drop(self)Perform the value’s cleanup.
type CopyThe declared interface for copying a value. Copy semantics remain under development.
Copy.copy
Section titled “Copy.copy”func copy(self): SelfProduce a value of the same type.
type DupeThe declared interface for explicit duplication. Deep-copy semantics remain under development.
Dupe.dupe
Section titled “Dupe.dupe”func dupe(self): SelfProduce a duplicate of the same type.