How to embed Python in an application?

sebastiano vigna (vigna@pippo.sm.dsi.unimi.it)
24 Mar 1995 00:07:54 +0100

I got suggestions from a lot of people about using
Python as embedded language for my editor, ne.

My problem is that the documentation is completely
obscure about how to embed Python in another application.

The point is that I have to be able to "register" the
editor commands in such a way that they can be called
from Python programs, exactly like in Tcl and REXX.
This point is never touched in the documentation.

I like the syntax and the rationale behind Python, so
I would really like to use it, but I need some
suggestions.

BTW, how small can the interpreter be made by eliminating
"esoteric" modules? The part embedded in an editor should
just get the basic stuff and file handling...

thank you for any help!

seba