1 | use crate::ffi; |
---|---|
2 | use crate::PyAny; |
3 | |
4 | /// Represents a Python code object. |
5 | #[repr(transparent)] |
6 | pub struct PyCode(PyAny); |
7 | |
8 | pyobject_native_type_core!( |
9 | PyCode, |
10 | pyobject_native_static_type_object!(ffi::PyCode_Type), |
11 | #checkfunction=ffi::PyCode_Check |
12 | ); |
13 |