Movatterモバイル変換


[0]ホーム

URL:


homepage

Message258843

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorterry.reedy
Recipientsserhiy.storchaka, terry.reedy
Date2016-01-22.23:28:21
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1453505301.39.0.216474479656.issue26177@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
DateUserActionArgs
2016-01-22 23:28:21terry.reedysetrecipients: +terry.reedy,serhiy.storchaka
2016-01-22 23:28:21terry.reedysetmessageid: <1453505301.39.0.216474479656.issue26177@psf.upfronthosting.co.za>
2016-01-22 23:28:21terry.reedylinkissue26177 messages
2016-01-22 23:28:21terry.reedycreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp