New submission from Abraham Karplus:

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.

----------
components: Tkinter
messages: 176696
nosy: Abraham Karplus
priority: normal
severity: normal
status: open
title: Tkinter calls SystemExit with string
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to