Gets the value of this integer. Warning: `PyInt::value()` is only supported for Python 2.7 `int` objects, but not for `long` objects. In almost all cases, you can avoid the distinction between these types by simply calling `obj.extract:: (py)`.
(&self, _py: Python)
| 82 | /// In almost all cases, you can avoid the distinction between these types |
| 83 | /// by simply calling `obj.extract::<i32>(py)`. |
| 84 | pub fn value(&self, _py: Python) -> c_long { |
| 85 | unsafe { ffi::PyInt_AS_LONG(self.0.as_ptr()) } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | impl PyFloat { |
nothing calls this directly
no test coverage detected