Import python functions into .NET language?

I am a C # .NET programmer and am learning Python. I downloaded IronPython and know that it can call .NET libraries.

I am wondering if there is a way to do the opposite, that is, call some existing "classic" Python libraries in my C # codec, possibly using .NET Interop.

I would like to have access to functions in libraries like pygame.

+5
source share
2 answers

Ironpython 2.0 is compatible with CPython 2.5, so pure Python that uses the <= 2.5 API should work fine under Ironpython. I believe Ironpython code can be compiled into a DLL.

C-, Pygame, Ironclad. , C- Ironpython. , .

+5

Python .Net, CLR Python C-based Python. '

: " , Python .NET " , Python ", , .NET( , " , #"). , IronPython , - , IronPython, Python .NET.

,

+3

All Articles