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.

classification
Title: Incorrect types in tkinter.EventType Enum
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ethan.furman, gpolo, miss-islington, serhiy.storchaka, terry.reedy
Priority: normal Keywords: patch

Created on 2020-09-19 19:36 by ethan.furman, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22348 merged ethan.furman, 2020-09-22 03:49
PR 22366 merged miss-islington, 2020-09-22 17:28
PR 22367 merged miss-islington, 2020-09-22 17:28
Messages (2)
msg377188 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2020-09-19 19:36
Several of the EventType members, such as Key, are actually tuples instead of strings.  I suspect the comma was accidentally left in place when EventType was created from a different data structure.

Switching the Enum type to the new StrEnum fixes the problem.  (It will be merged in in the next couple days.)
msg377334 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2020-09-22 15:01
New changeset ea0711a9f9f207d6d4ca037d90de6ec60db131b0 by Ethan Furman in branch 'master':
bpo-41817: use new StrEnum to ensure all members are strings (GH-22348)
https://github.com/python/cpython/commit/ea0711a9f9f207d6d4ca037d90de6ec60db131b0
History
Date User Action Args
2022-04-11 14:59:35adminsetgithub: 85983
2020-09-22 20:02:54ethan.furmansetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-09-22 17:28:23miss-islingtonsetpull_requests: + pull_request21406
2020-09-22 17:28:15miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request21405
2020-09-22 15:01:29ethan.furmansetmessages: + msg377334
2020-09-22 03:49:44ethan.furmansetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request21387
2020-09-19 19:36:58ethan.furmancreate