Compiling a subset of Python

Magnus Lie Hetland mlh at idi.ntnu.no
Mon Sep 10 12:21:29 EDT 2001


http://www.mudlib.org/~rassilon/p2c/

--

  Magnus Lie Hetland         http://www.hetland.org

 "Reality is that which, when you stop believing in
  it, doesn't go away."           -- Philip K. Dick

"Gerson Kurz" <gerson.kurz at t-online.de> wrote in message
news:3b9cd920.8769546 at news.t-online.de...
> Has anybody tried to write a native c compiler for a restricted subset
> of Python?
>
> In my naive view, some things obviously are not easily compiled (such
> as exec() and eval()), and some constructions (such as modifying
> globals() etc.) I don't really need if I get a compiler for a subset
> that fits *most* needs instead.
>
> So, can somebody please explain explicitly *which* constructs are
> actually responsible for python lacking a compiler?
>
> Also, are there any more detailed sample programs for the inspect
> module?





More information about the Python-list mailing list