You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is very common error when user pass list instead tuple to Tkinter. Some functions accept both tuple and list, some functions reject list, but many functions silently convert non-tuple value to str (e.g. [1, 2] -> '[1, 2]' instead of expected Tcl representation '{1 2}'). The proposed patch adds support of Python lists in all Tkinter functions which accept tuples.
Activity
serhiy-storchaka commentedon May 18, 2014
There is very common error when user pass list instead tuple to Tkinter. Some functions accept both tuple and list, some functions reject list, but many functions silently convert non-tuple value to str (e.g. [1, 2] -> '[1, 2]' instead of expected Tcl representation '{1 2}'). The proposed patch adds support of Python lists in all Tkinter functions which accept tuples.
terryjreedy commentedon May 18, 2014
Sounds like a good idea to me. The code looks pretty straightforward as far as I understood it.
python-dev commentedon May 21, 2014
New changeset 8676e436c0f0 by Serhiy Storchaka in branch 'default':
Issue bpo-21525: Most Tkinter methods which accepted tuples now accept lists too.
http://hg.python.org/cpython/rev/8676e436c0f0