Stop python

D-Man dsh8290 at rit.edu
Mon Apr 16 16:02:52 EDT 2001


On Mon, Apr 16, 2001 at 05:38:10PM +0000, Dave LeBlanc wrote:
| How would this terminate the parsing of a Python program (as opposed
| to execution)?

Actually, you're right.  I doesn't stop parsing.  If you want python
to stop parsing a file, you must insert a syntax error <wink>.

Python parses, then byte-compiles the whole file before it begins
execution.  The Bourne shell simply parses and executes as it reaches
statements (AFAIK).  

-D





More information about the Python-list mailing list