(iterable: ArgIterable<ArgIntoBool>, vm: &VirtualMachine)
| 55 | |
| 56 | #[pyfunction] |
| 57 | fn any(iterable: ArgIterable<ArgIntoBool>, vm: &VirtualMachine) -> PyResult<bool> { |
| 58 | for item in iterable.iter(vm)? { |
| 59 | if item?.into_bool() { |
| 60 | return Ok(true); |
| 61 | } |
| 62 | } |
| 63 | Ok(false) |
| 64 | } |
| 65 | |
| 66 | #[pyfunction] |
| 67 | pub fn ascii(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyStrRef> { |
no test coverage detected