Terry J. Reedy added the comment: Simple fix attached. I copied the exit code from this part of the 'while True:' loop.
try: pdb._runscript(mainpyfile) if pdb._user_requested_quit: break print("The program finished and will be restarted") I am not sure if the conditional is still needed there. Xavier, if you have a better patch, please upload it. ---------- keywords: +patch Added file: http://bugs.python.org/file40358/pdbloopfix.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16180> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com