How to add python binding to C #?

When you want to call C from python, you write a module like this:

http://docs.python.org/extending/extending.html

Now I have a question:

I want to write a module for use in Python with C #.

How can I get C # to interact with native Python?
(Note: I'm not interested in Python.NET or IronPython).

+3
source share
1 answer

I know that you probably won't like this answer, but to be honest, write it in C ++ using boost :: python or directly in Cython.

#, , Python, API Python C, , Python # .., , , .

.NET, (, Mono), .

# CPython, - pywin32 win32com Python COM Interop .NET. # COM- Python , . , .

+1

Source: https://habr.com/ru/post/1772403/


All Articles