Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Python to .Net tool

Python to .Net tool

Scheduled Pinned Locked Moved C#
csharppythontoolsquestion
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    George_George
    wrote on last edited by
    #1

    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

    D L 2 Replies Last reply
    0
    • G George_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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      G 1 Reply Last reply
      0
      • G George_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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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#.

        G 1 Reply Last reply
        0
        • D Dave Kreskowiak

          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

          G Offline
          G Offline
          George_George
          wrote on last edited by
          #4

          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

          D 1 Reply Last reply
          0
          • L Lost User

            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#.

            G Offline
            G Offline
            George_George
            wrote on last edited by
            #5

            You mean convert the code manually? :-) regards, George

            1 Reply Last reply
            0
            • G George_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

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              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

              G 1 Reply Last reply
              0
              • D Dave Kreskowiak

                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

                G Offline
                G Offline
                George_George
                wrote on last edited by
                #7

                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

                D D 2 Replies Last reply
                0
                • G George_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

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  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

                  G 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    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

                    G Offline
                    G Offline
                    George_George
                    wrote on last edited by
                    #9

                    But what do you mean "It's not to involved .NET in Python"? regards, George

                    1 Reply Last reply
                    0
                    • G George_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

                      D Offline
                      D Offline
                      Dave Cross
                      wrote on last edited by
                      #10

                      He means 'Yes'. probably.

                      Dave Cross

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups