Terry J. Reedy added the comment:

With patch applied to 3.5, tk.Canvas().keys() works and test_tk and other three 
files pass with -ugui.

Is avoiding splitlist calls when not needed worthwhile?  Tests also pass with 

    def keys(self):
        """Return a list of all resource names of this widget."""
        config = self.tk.call(self._w, 'configure')
        if type(config) == tuple:
            return [x[0][1:] for x in config]
        else:  # str
            splitlist = self.tk.splitlist
            return [splitlist(x)[0][1:] for x in
                splitlist(config)]

I am a bit curious why Canvas gives a different return.  Is the special casing 
in _tkinter or tk itself?  Otherwise, looks good to me.

----------
stage: patch review -> commit review

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26177>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to