Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28254
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <alec.taylor6@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'url:pypi': 0.03; 'interpreter': 0.04; 'subject:Python': 0.05; 'json': 0.07; 'purpose.': 0.07; 'scripts': 0.09; 'python': 0.09; 'sep': 0.09; 'cc:addr:python-list': 0.10; 'language': 0.14; 'ideal.': 0.16; 'subprocess': 0.16; 'task:': 0.16; 'two.': 0.16; 'wrote:': 0.17; 'module,': 0.17; '(or': 0.18; 'module': 0.19; 'all,': 0.21; 'received:209.85.214.174': 0.21; 'supposed': 0.21; 'work,': 0.22; 'cc:2**0': 0.23; 'third-party': 0.23; "haven't": 0.23; 'seems': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; '(which': 0.26; '[1]': 0.27; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'run': 0.28; 'embed': 0.29; 'url:mailman': 0.29; "i'm": 0.29; 'url:python': 0.32; 'url:listinfo': 0.32; 'another': 0.33; 'requirements': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'machines': 0.35; 'process,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'tool': 0.36; 'url:org': 0.36; 'stock': 0.36; 'received:209': 0.37; 'far': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'received:209.85.214': 0.39; 'build': 0.39; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; 'easy': 0.60; 'between': 0.63; 'receive': 0.71; 'interchange': 0.84; 'subject:running': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xyvlsfKJXgJeUmUJ9T6SvU4W7HRQRajtCMVmBhNVQsM=; b=Qv9N245ytbAtqYuSmnlcUEAQ7luSfQr1Dl66O9fJCWtp34WczU4Rbig6ftnWEHt8LU RQHu+xWSbIbwg8nqdaawcgFQ6yedU79aQBhb0t8o82DnyuPwQSZzPn44rkKUzaHnhvVA NTssectixnC+IstbTCgYdcHcHFsDQDvd4HpQpm2td4hNULjRhShb3hEnmPkh3HFLC4KS Mf6ZgAledMUqD8Vr0n6aVfeTMsBNzBRv2bUtokXYgK9cFl7FZASiyRRUP6oXrmQydwRn bKNoFFRnnr2do3R1LZp0fTiBfrCL66Bs8O8kKQ2UtnBGxvrm24E0sjFsuyVv1zobEwn7 CIIg== |
| MIME-Version | 1.0 |
| In-Reply-To | <CALwzidk8UL5pV2F=WeEisyHb=_q=XJeE45m4dFK7_BK821J3TA@mail.gmail.com> |
| References | <CAJ6cK1ZeBMiD_XkuwgzOo8fKHqM9CBqwe6rMxOo8T0Jj=0h2fw@mail.gmail.com> <CALwzidk8UL5pV2F=WeEisyHb=_q=XJeE45m4dFK7_BK821J3TA@mail.gmail.com> |
| Date | Sun, 2 Sep 2012 19:39:25 +1000 |
| Subject | Re: running Lua in Python |
| From | Alec Taylor <alec.taylor6@gmail.com> |
| To | Ian Kelly <ian.g.kelly@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | Python <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.70.1346578768.27098.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1346578768 news.xs4all.nl 6864 [2001:888:2000:d::a6]:42162 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:28254 |
Show key headers only | View raw
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 <ian.g.kelly@gmail.com> wrote: > > On Sun, Sep 2, 2012 at 3:04 AM, Arnaud Delobelle <arnodel@gmail.com> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: running Lua in Python Alec Taylor <alec.taylor6@gmail.com> - 2012-09-02 19:39 +1000
csiph-web