C in Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaarthikeyapreyan
    New Member
    • Apr 2007
    • 106

    #1

    C in Python

    Can we embed or execute a c code in python
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by kaarthikeyaprey an
    Can we embed or execute a c code in python
    Oh, yes! Embedding is possible if you are good with a compiler.

    The really Pythonic (easy) thing to do is use the ctypes module to call pre-compiled C library functions.

    Comment

    Working...