(
&self,
jen: &PyObject,
val: PyObjectRef,
vm: &VirtualMachine,
)
| 6802 | } |
| 6803 | |
| 6804 | fn _send( |
| 6805 | &self, |
| 6806 | jen: &PyObject, |
| 6807 | val: PyObjectRef, |
| 6808 | vm: &VirtualMachine, |
| 6809 | ) -> PyResult<PyIterReturn> { |
| 6810 | match self.builtin_coro(jen) { |
| 6811 | Some(coro) => coro.send(jen, val, vm), |
| 6812 | // TODO: turn return type to PyResult<PyIterReturn> then ExecutionResult will be simplified |
| 6813 | None if vm.is_none(&val) => PyIter::new(jen).next(vm), |
| 6814 | None => { |
| 6815 | let meth = jen.get_attr("send", vm)?; |
| 6816 | PyIterReturn::from_pyresult(meth.call((val,), vm), vm) |
| 6817 | } |
| 6818 | } |
| 6819 | } |
| 6820 | |
| 6821 | fn execute_unpack_ex(&mut self, vm: &VirtualMachine, before: u8, after: u8) -> FrameResult { |
| 6822 | let (before, after) = (before as usize, after as usize); |
no test coverage detected