Message279277
Your proposal also makes an extra computation: an item (not) belongs to a list
if not self._w in cmd:
cmd = _flatten((self._w, cmd))
Also it's more efficient to use this than the function _flaten() in that situation:
if not self._w in cmd:
cmd = (self._w,) + cmd |
|
| Date |
User |
Action |
Args |
| 2016-10-23 19:43:41 | tkinter | set | recipients:
+ tkinter, klappnase, serhiy.storchaka, GNJ |
| 2016-10-23 19:43:41 | tkinter | set | messageid: <[email protected]> |
| 2016-10-23 19:43:41 | tkinter | link | issue28498 messages |
| 2016-10-23 19:43:41 | tkinter | create | |
|