extending the break statement

Terry Reedy tjreedy at udel.edu
Wed Oct 22 22:52:04 EDT 2003


"Michele Simionato" <mis6 at pitt.edu> wrote in message
news:2259b0e2.0310220706.142bf8cb at posting.google.com...
> Is there a way of "ending" a module? I would like something like
this:
>
>   # mod.py
>   print 'something here'
"""
>   end() # some mysterious function
>   print 'you should not get here'
"""

This assuming that you do not use both types of triple quotes in the
part you want to comment out.  Compiler dumps bare string literals.

Terry J. Reedy






More information about the Python-list mailing list