Python <==> d call both ways example (with PyD and autowrap)?

Jordan Wilson wilsonjord at gmail.com
Thu Jun 23 03:23:49 UTC 2022


On Wednesday, 22 June 2022 at 16:02:00 UTC, mw wrote:
> Hi,
>
> I know with PyD, D can call Python, and with autowrap, Python 
> can call a D .dll, I'm just wondering if someone can show an 
> example that Python <==> d can call both ways? esp. show 
> passing D objects to Python and then call its member function 
> there, and vice versa.
>
> Thanks.

When I did something like this, I used this as my inspiration:
https://github.com/ariovistus/pyd/tree/master/examples/testdll

So, I used PyD to supply D objects and read Python data also.

Thanks,

Jordan


More information about the Digitalmars-d-learn mailing list