(cls: PyTypeRef, mut args: FuncArgs, vm: &VirtualMachine)
| 620 | } |
| 621 | |
| 622 | pub(crate) fn new_wrapper(cls: PyTypeRef, mut args: FuncArgs, vm: &VirtualMachine) -> PyResult { |
| 623 | let new = cls.get_attr(identifier!(vm, __new__)).unwrap(); |
| 624 | args.prepend_arg(cls.into()); |
| 625 | new.call(args, vm) |
| 626 | } |
| 627 | |
| 628 | fn del_wrapper(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<()> { |
| 629 | vm.call_special_method(zelf, identifier!(vm, __del__), ())?; |
nothing calls this directly
no test coverage detected