Permalink
Switch branches/tags
Nothing to show
Commits on May 10, 2009
  1. Add README file.

    dmcooke committed May 10, 2009
  2. Use pyembed feature for the Python-in-Lua module.

    dmcooke committed May 10, 2009
    Also add some workarounds so it comes out .so on Mac.
Commits on May 7, 2009
  1. - Don't link the Lua library (liblua.a usually) into the lua extension.

    dmcooke committed May 7, 2009
      This causes all sorts of invisible trouble.
    - Add a test to test_py.lua that crashes if you have linked in Lua :)
    - better looking for Lua in the wscript
  2. Update tests

    dmcooke committed May 7, 2009
    - remove some debugging output in test_lua.py
    - test conversion of simple types in test_py.lua
  3. Convert Lua_run to "goto error" style. Use Python allocation functions.

    dmcooke committed May 7, 2009
    Use memcpy instead of strncat.
  4. Use LUA_NOREF as the default value of LuaObject->refiter instead of 0…

    dmcooke committed May 7, 2009
    … (which could be a valid ref index).
  5. Set PY_SSIZE_T_CLEAN before #including Python.h so s# format code ret…

    dmcooke committed May 7, 2009
    …urns length as a Py_ssize_t.
  6. check a Python API call

    dmcooke committed May 7, 2009
Commits on May 6, 2009
  1. Remove the python.lua file. We'll install python.so in an appropiate …

    dmcooke committed May 6, 2009
    …place
    
    for lua to find it.
  2. Initial test suite.

    dmcooke committed May 6, 2009
    Currently copy of the "Lua inside Python" examples from the manual, as
    a doctest.
  3. Add a module-level error handler for the lua module.

    dmcooke committed May 6, 2009
    Prints the (lua) error message, then aborts the interpreter (by returning).
    Better ideas welcome :)
  4. py_convert in pythoninlua.c can throw Lua errors. Use a wrapped version

    dmcooke committed May 6, 2009
    e_py_convert in luainpython.c that catches them and turns them into
    Python errors.
  5. Tabify luainpython.c

    dmcooke committed May 6, 2009
  6. Do error-handling of lua functions that can error. Introduce a macroized

    dmcooke committed May 6, 2009
    TRY/CATCH/ENDTRY structure using setjmp/longjmp.
  7. Update Lua and Python API usage

    dmcooke committed May 6, 2009
    - luaL_checkudata in Lua 5.1 throws an error if the udata is not the one
      being checked for. Replace with check_py_object
    - Use size_t and Py_ssize_t where appropiate
    - updated lua init.
    - call PyType_Ready on the LuaObject_Type
Commits on May 3, 2009
  1. Add support for building with waf

    dmcooke committed May 3, 2009
    - include the waf script for building, as it's self-contained
  2. Update setup.py

    dmcooke committed May 3, 2009
    - remove building of 'lua-python' extension. It was an exact copy of
      of the 'lua' extension?
    - top-level variabls LUA_LIBS, LUA_INCDIR, LUA_LIBDIR that'll need to be
      edited on a site-to-site basis. Currently set to use /opt/local.