Spanish Inquisition?!

John Max Skaller skaller at maxtal.com.au
Sat Sep 4 14:16:35 EDT 1999


On Fri, 03 Sep 1999 16:54:37 GMT, clgonsal at keeshah.penguinpowered.com (C.Laurence Gonsalves) wrote:

>On Fri, 03 Sep 1999 08:48:12 -0400, David Oppenheimer
>> P.S. Creating compiled code from Python  that didn't require the
>> interpreter to be distributed with it would be high magic indeed.
>
>Yeah, especially compiling those eval and exec functions...

	Thats no real problem. Any 'compiled' version
of python, and Viperc is no exception, must have an
inbuilt interpreter, and the usual set of builtin functions.
This is required even without 'exec' and 'eval', in case
the compiler cannot deduce enough to optimise the code.
For example:

	for i in alist: print i

is hard to optimise, since 'i' could be anything.

	Indeed, compiled python is likely
to be interpreted python, with a lot of 'builtin'
functions added by the compiler to replace
parts of the python code.

John Max Skaller                ph:61-2-96600850              
mailto:skaller at maxtal.com.au       10/1 Toxteth Rd 
http://www.maxtal.com.au/~skaller  Glebe 2037 NSW AUSTRALIA




More information about the Python-list mailing list