Python to .Net tool
-
Hello everyone, I have some python source code and I want to convert to .Net C# code. Any tools to recommend? thanks in advance, George
-
Hello everyone, I have some python source code and I want to convert to .Net C# code. Any tools to recommend? thanks in advance, George
The only conversion tool is your eyeballs and hands. There is no automated conversion tool possible. Your only other option is IronPython[^], which is a .NET CLR version of Python. Of course, there may be a fair amount of rewriting of your code to get it to work.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Hello everyone, I have some python source code and I want to convert to .Net C# code. Any tools to recommend? thanks in advance, George
-
The only conversion tool is your eyeballs and hands. There is no automated conversion tool possible. Your only other option is IronPython[^], which is a .NET CLR version of Python. Of course, there may be a fair amount of rewriting of your code to get it to work.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Thanks Dave, I am confused about your solution of using IronPython. I am also new to IronPython, but I think the function of IronPython is to invole .Net code from Python code. Does it have function to compile Python code into .Net IL? Any more reference links? regards, George
-
Wow your request is on every forum possible isn't it. Such a tool doesn't exist, you're gonna need some help on this one from someone who knows both python and c#.
You mean convert the code manually? :-) regards, George
-
Thanks Dave, I am confused about your solution of using IronPython. I am also new to IronPython, but I think the function of IronPython is to invole .Net code from Python code. Does it have function to compile Python code into .Net IL? Any more reference links? regards, George
George_George wrote:
I am confused about your solution of using IronPython
What's to be confused about?? IronPython is a .NET CLR, managed-code verison, of Python. It's not to involved .NET in Python. It is a version of the language that cannot run without .NET. No, there is no possible way to convert the code you have to work under the .NET CLR, without rewriting it, by hand.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
George_George wrote:
I am confused about your solution of using IronPython
What's to be confused about?? IronPython is a .NET CLR, managed-code verison, of Python. It's not to involved .NET in Python. It is a version of the language that cannot run without .NET. No, there is no possible way to convert the code you have to work under the .NET CLR, without rewriting it, by hand.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Thanks Dave, I am confused about what do you mean "IronPython is a .NET CLR, managed-code verison, of Python. It's not to involved .NET in Python". I am interested in how IronPython works, does it compiles Python code into .Net IL code and then run them under .Net Runtime? regards, George
-
Thanks Dave, I am confused about what do you mean "IronPython is a .NET CLR, managed-code verison, of Python. It's not to involved .NET in Python". I am interested in how IronPython works, does it compiles Python code into .Net IL code and then run them under .Net Runtime? regards, George
Just like C#, VB.NET, C++/CLI, ..., yes.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Just like C#, VB.NET, C++/CLI, ..., yes.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008But what do you mean "It's not to involved .NET in Python"? regards, George
-
Thanks Dave, I am confused about what do you mean "IronPython is a .NET CLR, managed-code verison, of Python. It's not to involved .NET in Python". I am interested in how IronPython works, does it compiles Python code into .Net IL code and then run them under .Net Runtime? regards, George
He means 'Yes'. probably.
Dave Cross