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 epaine
Recipients Akuli, epaine, serhiy.storchaka
Date 2021-07-09.19:44:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625859869.24.0.454015609102.issue44592@roundup.psfhosted.org>
In-reply-to
Content
I agree with Akuli that raising a KeyError is not expected behaviour (combined with the fact this is caught elsewhere), and therefore is probably a regression.

While we could use `winfo class` to determine the type of Tk widget, this would probably require a reasonably sized refactor of tkinter (and we would still need to support cases when it's a type we don't know). Therefore, I think returning `None` is the best solution.

Akuli, would you like to create a pull request for this?
History
Date User Action Args
2021-07-09 19:44:29epainesetrecipients: + epaine, serhiy.storchaka, Akuli
2021-07-09 19:44:29epainesetmessageid: <1625859869.24.0.454015609102.issue44592@roundup.psfhosted.org>
2021-07-09 19:44:29epainelinkissue44592 messages
2021-07-09 19:44:29epainecreate