Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Strange, I haven't done a lot with Python but I've built a pretty big system in Lua and its FFI is incredibly nice, the nicest I've ever used, in fact.


Ah, I misunderstood. I thought he was intending to call C from Python by calling Lua from Python and then C from Lua. Still, calling C from Python is trivial with ctypes. Most people do not realize how easy it is:

    from ctypes import CDLL
    libc = CDLL("libc.so.6")
    libc.printf("boo")




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: