(py: Python, ty: &PyType, _init_val: ())
| 138 | type InitType = (); |
| 139 | |
| 140 | unsafe fn alloc(py: Python, ty: &PyType, _init_val: ()) -> PyResult<PyObject> { |
| 141 | let ptr = ffi::PyType_GenericAlloc(ty.as_type_ptr(), 0); |
| 142 | //println!("BaseObject::alloc({:?}) = {:?}", ty.as_type_ptr(), ptr); |
| 143 | err::result_from_owned_ptr(py, ptr) |
| 144 | } |
| 145 | |
| 146 | unsafe fn dealloc(_py: Python, obj: *mut ffi::PyObject) { |
| 147 | //println!("BaseObject::dealloc({:?})", ptr); |
nothing calls this directly
no test coverage detected