(zelf: &PyObject, args: FuncArgs, vm: &VirtualMachine)
| 1695 | #[inline] |
| 1696 | #[pyslot] |
| 1697 | fn slot_call(zelf: &PyObject, args: FuncArgs, vm: &VirtualMachine) -> PyResult { |
| 1698 | let zelf = zelf.downcast_ref().ok_or_else(|| { |
| 1699 | let repr = zelf.repr(vm); |
| 1700 | let help: Wtf8Buf = if let Ok(repr) = repr.as_ref() { |
| 1701 | repr.as_wtf8().to_owned() |
| 1702 | } else { |
| 1703 | zelf.class().name().to_owned().into() |
| 1704 | }; |
| 1705 | let mut msg = Wtf8Buf::from("unexpected payload for __call__ of "); |
| 1706 | msg.push_wtf8(&help); |
| 1707 | vm.new_type_error(msg) |
| 1708 | })?; |
| 1709 | let args = args.bind(vm)?; |
| 1710 | Self::call(zelf, args, vm) |
| 1711 | } |
| 1712 | |
| 1713 | fn call(zelf: &Py<Self>, args: Self::Args, vm: &VirtualMachine) -> PyResult; |
| 1714 | } |
nothing calls this directly
no test coverage detected