This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tkinter
Recipients GNJ, klappnase, serhiy.storchaka, tkinter
Date 2016-10-23.19:43:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477251821.19.0.337796355074.issue28498@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-10-23 19:43:41tkintersetrecipients: + tkinter, klappnase, serhiy.storchaka, GNJ
2016-10-23 19:43:41tkintersetmessageid: <1477251821.19.0.337796355074.issue28498@psf.upfronthosting.co.za>
2016-10-23 19:43:41tkinterlinkissue28498 messages
2016-10-23 19:43:41tkintercreate