1use crate::{ffi, PyAny};
2
3/// Represents a Python `int` object.
4///
5/// You can usually avoid directly working with this type
6/// by using [`ToPyObject`](crate::conversion::ToPyObject)
7/// and [`extract`](PyAny::extract)
8/// with the primitive Rust integer types.
9#[repr(transparent)]
10pub struct PyLong(PyAny);
11
12pyobject_native_type_core!(PyLong, pyobject_native_static_type_object!(ffi::PyLong_Type), #checkfunction=ffi::PyLong_Check);
13