Program, Application, and Software

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Nov 19 05:30:30 CET 2010


On Fri, 19 Nov 2010 00:26:41 +0000, MRAB wrote:

> On 19/11/2010 00:07, Steven D'Aprano wrote:
>> On Thu, 18 Nov 2010 14:21:47 +0000, Martin Gregorie wrote:
>>
>>> I use 'script' to refer to programs written in languages that don't
>>> have a separate compile phase which must be run before the program can
>>> be executed. IOW Python and Perl programs are scripts aloing with
>>> programs written as awk, Javascript and bash scripts.
>>
>> You're mistaken then about Python, because it does have a separate
>> compilation phase that runs before the program can be executed. Where
>> do you think the .pyc files come from, and what did you think the
>> compile() function did? It just happens automatically, rather than
>> manually.
>>
> [snip]
> I think what he means is that you don't need explicitly to compile and
> then run.


So if I write a small shell script to act as a wrapper around the usual 
compile/execute cycle of (say) C, my C programs turn into scripts, but if 
I ignore the wrapper and run the compile/execute commands manually, they 
turn back into not-scripts?



-- 
Steven



More information about the Python-list mailing list