Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pymacs 0.12

1 view
Skip to first unread message

François Pinard

unread,
Nov 29, 2001, 7:37:50 PM11/29/01
to
[François Pinard]

> [...] Python 2 users
> may prefer using function attributes, and replace the last line with:

> hello_world.interactions = ''

Oops, sorry. I meant:

hello_world.interaction = ''

with no `s' after `interaction'.

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


François Pinard

unread,
Nov 29, 2001, 7:32:57 PM11/29/01
to
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.

Not much changed in this release. The limit of time while starting the
Python subprocess has been raised from 5 to 30 seconds, for heavily loaded
systems. Time limits may now be preset from the `.emacs' file, as needed.

With the publication notice of Pymacs 0.11, I gave this example:

import pymacs
interactions = {}

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

to show how one provides an `(interactive)' specification. Python 2 users


may prefer using function attributes, and replace the last line with:

hello_world.interactions = ''

If this does not work, Pymacs falls back on the old portable method. Enjoy!

0 new messages