keyword that stops further processing of a Python script

Dave Benjamin ramen at lackingtalent.com
Tue Feb 17 07:06:42 CET 2004


In article <2c83305ajs1vgqt65oo97t15b82grqjd7u at 4ax.com>, Avi Kak wrote:
> 
>   Does Python provide a token like Perl's __END__
>   that would mark the logical end of a Python script 
>   which could occur before the actual end of the file. 
> 
>   I have found Perl's __END__ token to be very useful 
>   for debugging scripts.  So I was wondering if
>   Python provided a similar facility.

I think it's denoted by an endless expanse of significant whitespace.
Har, har. Sorry, couldn't resist.

-- 
.:[ dave benjamin: ramen/[sp00] -:- spoomusic.com -:- ramenfest.com ]:.
: d r i n k i n g   l i f e   o u t   o f   t h e   c o n t a i n e r :



More information about the Python-list mailing list