Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: running Lua in Python

Reply
Thread Tools

Re: running Lua in Python

 
 
Alec Taylor
Guest
Posts: n/a
 
      09-02-2012
Or you can use a module made for this task:

http://labix.org/lunatic-python

http://pypi.python.org/pypi/lupa

On Sun, Sep 2, 2012 at 7:24 PM, Ian Kelly <(E-Mail Removed)> wrote:
>
> On Sun, Sep 2, 2012 at 3:04 AM, Arnaud Delobelle <(E-Mail Removed)> wrote:
> > Hi all,
> >
> > I'm looking for a way to run Lua scripts in Python, and also send and
> > receive data between the two. Something like lunatic-python [1] would
> > be ideal. However, so far I haven't been able to build it on the
> > machines it's supposed to run on (macs with OS X Lion) and it seems to
> > be dormant.
> >
> > My requirements are stock OS X Python (which is 2.7) and Lua 5.2. I'm
> > looking for either a way to make lunatic-python work or another tool
> > that would do the job.

>
> The simple approach would be to run the Lua scripts with the
> subprocess module, using JSON (or something equally accessible) as an
> interchange format.
>
> If you need to embed the Lua interpreter in the Python process, and
> you can't get an existing third-party module to work, consider rolling
> your own C module for the purpose. My recollection of working with
> Lua is that it's a very easy language to embed.
> --
> http://mail.python.org/mailman/listinfo/python-list

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: running Lua in Python Arnaud Delobelle Python 0 09-02-2012 06:34 PM
Re: running Lua in Python Arnaud Delobelle Python 0 09-02-2012 09:49 AM
Re: running Lua in Python Stefan Behnel Python 0 09-02-2012 09:45 AM
Re: running Lua in Python Ian Kelly Python 0 09-02-2012 09:24 AM
running Lua in Python Arnaud Delobelle Python 0 09-02-2012 09:04 AM



Advertisments