On Wed, Mar 10, 2010 at 6:23 PM, Lisandro Dalcin <[email protected]> wrote: > On 10 March 2010 21:03, Ondrej Certik <[email protected]> wrote: >> >> After I get this working, and test that it indeed works, I'll try to >> put it into cython somehow, so that anyone can use it. >> > > Or start a new project. IMO, such a tool has a broader scope. BTW, you > can get some ideas from here > http://www.boost.org/doc/libs/1_42_0/libs/python/doc/tutorial/doc/html/python/embedding.html
Thanks for the link. I'll rename my cmd() to eval(), that makes more sense. > >> One of my friends told me that he prefers Lua because it's super easy >> to use from C/C++. > > Really? Looking here http://www.lua.org/pil/24.1.html, I cannot buy > such assertion. Is your friend talking about the stack-based C<->Lua > flow? I did use Lua about 5 years ago myself from C++ and it was super easy to export my C++ functions in there and use Lua as a plugin/extension language to my C++ program (e.g. exposing C++ functions as well as calling lua functions). Doing the same using Python C/API was way more complex (talking for myself). Cython made it easy, but not easy enough, but the Python() class approach above, I think that will rock. I am implementing it now. Ondrej _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
