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

Guilherme Polo report at bugs.python.org
Sat May 10 17:01:57 CEST 2008


Guilherme Polo <ggpolo at gmail.com> added the comment:

_getints already call splitlist, so there isn't much point in calling
_getints after calling splitlist.

And the Tk documentation says an empty string should be returned in case
there is no selection, but that is Tk. I don't see any problem in
returning None instead of '' here in Python.

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


More information about the Python-bugs-list mailing list