keyword that stops further processing of a Python script

Avi Kak kak at purdue.edu
Tue Feb 17 00:20:42 EST 2004



Hello:

  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.

Avi Kak 



More information about the Python-list mailing list