Pymacs 0.11

Carel Fellinger cfelling at iae.nl
Wed Oct 17 07:09:11 EDT 2001


François Pinard <pinard at iro.umontreal.ca> wrote:
...
> The Emacs LISP interaction parameters, so the interactivity of functions,
> may now be specified from within the Python side.  The example below uses
> the empty string for an argument-less function, see `README' for details.

>         import pymacs
>         interactions = {}

>         def hello_world():
>             "`Hello world' from Python."
>             pymacs.lisp.insert("Hello from Python!")
>         interactions[hello_world] = ''

why not use function attributes, like:

          hello_world.lisp_interaction = ''

-- 
groetjes, carel



More information about the Python-list mailing list