Can python do this?

Werner Schiendl ws-news at
Tue Nov 20 11:08:00 CET 2001


yes this is very possible.

And there are a lot of ways to do so.

You can use exec and eval to run code or evaluate expressions in your
current python context.
The Python C API also allows you to run arbitrary code.

There are also ready made solutions available for running Python code
through the web.
I. e. you can use Python as language for ASP pages when you have the windows
extensions installed.
Zope also provides a lot of possibilities to run Python code (Scripts,
external methods, Products - in order of complexity ;-)


"Ken" <khirmint at> wrote in message
news:3BF976C9.49AE31AB at
> Is it possible to have a program running (either C or Python) and have
> that program dynamically load Python functions while its executing?
> The idea is to have a server running that users can connect to, and be
> able to change functionality without having to restart the executable.
> Objects/variables loaded into memory (ie. who's connected) would
> also need to be saved.
> If it is possible, would it be terribly difficult?

More information about the Python-list mailing list