[PATCH 7 of 7] rust-cpython: leverage upstreamed py_capsule_fn!() macro
Yuya Nishihara
yuya at tcha.org
Sun Oct 13 08:37:39 EDT 2019
On Sun, 13 Oct 2019 14:08:24 +0200, Georges Racinet wrote:
> > +py_capsule_fn!(
> > + from mercurial.cext.parsers import index_get_parents_CAPI
> > + as get_parents_capi
> > + signature (
> > + index: *mut python_sys::PyObject,
>
> Here you can directly use RawPyObject:
>
> index: *mut RawPyObject,
>
> see
> https://github.com/dgrunwald/rust-cpython/commit/c5cfd32cf05005e3ad515063c9ca14100362eb93
Oh, there is. I was looking for cpython::RawPyObject and failed.
I'll send V2 shortly.
More information about the Mercurial-devel
mailing list