2 ms·
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 wi
by jules 16y ago
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")