(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine)
| 37 | impl PyItertoolsChain { |
| 38 | #[pyslot] |
| 39 | fn slot_new(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine) -> PyResult { |
| 40 | let args_list = PyList::from(args.args); |
| 41 | Self { |
| 42 | source: PyRwLock::new(Some(args_list.to_pyobject(vm).get_iter(vm)?)), |
| 43 | active: PyRwLock::new(None), |
| 44 | } |
| 45 | .into_ref_with_type(vm, cls) |
| 46 | .map(Into::into) |
| 47 | } |
| 48 | |
| 49 | #[pyclassmethod] |
| 50 | fn from_iterable( |
nothing calls this directly
no test coverage detected