This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Abraham Karplus
Recipients Abraham Karplus
Date 2012-11-30.18:03:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354298633.36.0.337905476432.issue16582@psf.upfronthosting.co.za>
In-reply-to
Content
Exiting a Tkinter application normally results in printing '0' and exiting with error code 1. This is a result of Tkinter's _exit function, whose default argument for code is the string '0'. It then calls SystemExit with the code argument. However, according to the SystemExit documentation "if [the argument] has another type (such as a string), the object’s value is printed and the exit status is one". A simple fix for this would be to change the Tkinter _exit function to convert code to an int before passing it to SystemExit.
History
Date User Action Args
2012-11-30 18:03:53Abraham Karplussetrecipients: + Abraham Karplus
2012-11-30 18:03:53Abraham Karplussetmessageid: <1354298633.36.0.337905476432.issue16582@psf.upfronthosting.co.za>
2012-11-30 18:03:53Abraham Karpluslinkissue16582 messages
2012-11-30 18:03:52Abraham Karpluscreate