lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


short: 
You can't call python module from lua. 

This can not be true.  Python has a C API and so does Lua.  It must be possible to call Python from Lua somehow.



Long: 

For lua there is two "types" of shared libraries you can want to load: 

1) lua modules. 
It is how you load your mentioned module in python. 
They should contain `luaopen_<LIBNAME>` entry point (function), which is 
called by interpreter on load. 

2) FFI. 
For example, LuaJIT allows you to load (like `dl()`) any shared library, and 
call functions from there, like you would do when writing code in C. 

AFAIRC, there was a module providing something like that for PUC-Rio Lua too.