(o: *mut PyObject)
| 114 | #[cfg(not(Py_3_8))] |
| 115 | #[inline] |
| 116 | pub unsafe fn PyIter_Check(o: *mut PyObject) -> c_int { |
| 117 | (match (*(*o).ob_type).tp_iternext { |
| 118 | Some(tp_iternext) => { |
| 119 | tp_iternext as *const c_void |
| 120 | != crate::object::_PyObject_NextNotImplemented as *const c_void |
| 121 | } |
| 122 | None => false, |
| 123 | }) as c_int |
| 124 | } |
| 125 | |
| 126 | #[cfg_attr(windows, link(name = "pythonXY"))] |
| 127 | extern "C" { |