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 klappnase
Recipients GNJ, klappnase, serhiy.storchaka, tkinter
Date 2016-10-23.20:01:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477252891.46.0.556088007228.issue28498@psf.upfronthosting.co.za>
In-reply-to
Content
"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
"

The construct with _flatten() was not my invention, it's probably something to discuss with Guido ;)
The advantage of _flatten() may be, that it will also handle nested tuples properly, though I don't know if there is a real-life situation whee nested tuples might show up there. Anyway, thinking about optimisations on that level seems somewhat pointless to me, no one will probably iterate over configure() calls, and if yes, the bottleneck is clearly the self.tk.call() part.
History
Date User Action Args
2016-10-23 20:01:31klappnasesetrecipients: + klappnase, serhiy.storchaka, tkinter, GNJ
2016-10-23 20:01:31klappnasesetmessageid: <1477252891.46.0.556088007228.issue28498@psf.upfronthosting.co.za>
2016-10-23 20:01:31klappnaselinkissue28498 messages
2016-10-23 20:01:31klappnasecreate