[issue869780] curselection() in Tkinter.py should return ints

Pedro Werneck report at bugs.python.org
Sat May 10 16:30:00 CEST 2008


Pedro Werneck <pjwerneck at gmail.com> added the comment:

Just a bare self._getints will raise an exception with no item selected
and an empty string returned, so I'm adding a patch to check for it and
return an empty tuple in that case, or the tuple with ints.

It's open for discussion if we should follow Tk documentation strictly
and return an empty string if no item selected, or keep consistency with
Python and other Tkinter parts and always return a tuple.

----------
keywords: +patch
nosy: +werneck
Added file: http://bugs.python.org/file10246/issue869780_2.6.patch

____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue869780>
____________________________________


More information about the Python-bugs-list mailing list