(zelf: &Py<Self>, vm: &VirtualMachine)
| 1876 | |
| 1877 | #[pymethod] |
| 1878 | fn fetchone(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult { |
| 1879 | Self::next(zelf, vm).map(|x| match x { |
| 1880 | PyIterReturn::Return(row) => row, |
| 1881 | PyIterReturn::StopIteration(_) => vm.ctx.none(), |
| 1882 | }) |
| 1883 | } |
| 1884 | |
| 1885 | #[pymethod] |
| 1886 | fn fetchmany( |