Pymacs 0.11

François Pinard pinard at iro.umontreal.ca
Tue Oct 16 20:29:46 EDT 2001


Hi!  A new release of Pymacs is available as:

    http://www.iro.umontreal.ca/~pinard/pymacs/pymacs.tar.gz

Pymacs allows Emacs users to extend Emacs using Python, where they might have
traditionally used Emacs LISP.  Pymacs runs on systems having sub-processes.

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] = ''

It is now possible to import Python modules having a dash in their file name,
as this is the most natural way to proceed within an Emacs LISP environment.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list