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

Tejas notrealemail at gmail.com
Thu Jun 23 02:35:25 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.

IIRC the best you can do is embed a Python interpreter inside a D 
program

https://pyd.readthedocs.io/en/latest/embed.html


More information about the Digitalmars-d-learn mailing list