How does a "script" differ from a "program" or "subroutine"?

Phil Frost indigo at bitglue.com
Mon Aug 23 21:15:26 EDT 2004


A subroutine is another name for "procedure", "function", or "method".
They are made like this:

def fu():
  ...

A program can contain any number of subroutines, along with classes,
variables, etc.

A script is just a program, but has the implication that it's a simple
program for a simple task.

On Mon, Aug 23, 2004 at 05:18:40PM -0700, tdi wrote:
> Ok, stupid question for the day. I'm reading the interview with Steve
> Moret and he says: "Once a lot of scripts started going in we knew
> there was no way we could back out of using Python."
> 
> I'm just getting into Python and am wondering if I'm missing something
> or this is just a semantic issue.
> 
> Thanks.
> -Ted



More information about the Python-list mailing list