<br><font size=2><tt>> I want, and the script will stop executing at
that line and will<br>
> return to the interactive interpreter, as I wish.</tt></font>
<br>
<br><font size=2><tt>May I recommend wrapping your main program in a function
definition? Such as:</tt></font>
<br>
<br><font size=2><tt>main():</tt></font>
<br><font size=2><tt>        # Bulk of your
code (use a macro to indent it faster)</tt></font>
<br>
<br><font size=2><tt>if __name__ == "__main__":</tt></font>
<br><font size=2><tt>        main()</tt></font>
<br>
<br><font size=2><tt>Then you should be able to throw in a "return"
at any point and get a clean break, without affecting the flow of your
program. This should make it easier to debug as well, offering a clean
entry point from the python interactive session, and letting you return
a specific value you wish to check.</tt></font>
<br>
<br><font size=2><tt><br>
Garrick M. Peterson<br>
Quality Assurance Analyst<br>
Zoot Enterprises, Inc.<br>
garrick.peterson@NO.zootweb.com<br>
<br>
Copyright © 2007 Zoot Enterprises, Inc. and its affiliates.  All rights
reserved. This email, including any attachments, is confidential and may
not be redistributed without permission. If you are not an intended recipient,
you have received this message in error; please notify us immediately by
replying to this message and deleting it from your computer. Thank you.
</tt></font>