Issue21525
Created on 2014-05-18 16:04 by serhiy.storchaka, last changed 2014-05-21 14:21 by serhiy.storchaka. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| tkinter_accept_lists.patch | serhiy.storchaka, 2014-05-18 16:04 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg218747 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2014-05-18 16:04 | |
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.
|
|||
| msg218768 - (view) | Author: Terry J. Reedy (terry.reedy) * | Date: 2014-05-18 23:43 | |
Sounds like a good idea to me. The code looks pretty straightforward as far as I understood it. |
|||
| msg218875 - (view) | Author: Roundup Robot (python-dev) | Date: 2014-05-21 14:12 | |
New changeset 8676e436c0f0 by Serhiy Storchaka in branch 'default': Issue #21525: Most Tkinter methods which accepted tuples now accept lists too. http://hg.python.org/cpython/rev/8676e436c0f0 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-05-21 14:21:46 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2014-05-21 14:12:32 | python-dev | set | nosy:
+ python-dev messages: + msg218875 |
| 2014-05-18 23:43:57 | terry.reedy | set | messages: + msg218768 |
| 2014-05-18 16:04:31 | serhiy.storchaka | create | |