[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


miss-islington  added the comment:


New changeset 1f75fc7a9d9efbced2e0b0001ac148268a626d63 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
https://github.com/python/cpython/commit/1f75fc7a9d9efbced2e0b0001ac148268a626d63


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


miss-islington  added the comment:


New changeset f8ebb7b62ea266df5c6e0f910b7a6b0eb73deee4 by Miss Skeleton (bot) 
in branch '3.8':
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
https://github.com/python/cpython/commit/f8ebb7b62ea266df5c6e0f910b7a6b0eb73deee4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21602
pull_request: https://github.com/python/cpython/pull/22622

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset eb38c6b7aa35d3003ec0958533421902d19ce408 by Serhiy Storchaka in 
branch 'master':
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
https://github.com/python/cpython/commit/eb38c6b7aa35d3003ec0958533421902d19ce408


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21603
pull_request: https://github.com/python/cpython/pull/22623

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 43c3eafa1bcdc522870e112d3e2d67ce2451c34b by Miss Skeleton (bot) 
in branch '3.9':
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354) (GH-22617)
https://github.com/python/cpython/commit/43c3eafa1bcdc522870e112d3e2d67ce2451c34b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


miss-islington  added the comment:


New changeset 86938548d5829400065d2705e3d25604c14b23b7 by Miss Skeleton (bot) 
in branch '3.8':
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)
https://github.com/python/cpython/commit/86938548d5829400065d2705e3d25604c14b23b7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21598
pull_request: https://github.com/python/cpython/pull/22617

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset f25323a307a72c40862c87c2df822f83be6645da by Serhiy Storchaka in 
branch 'master':
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)
https://github.com/python/cpython/commit/f25323a307a72c40862c87c2df822f83be6645da


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-10-09 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +21597
pull_request: https://github.com/python/cpython/pull/22616

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-09-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +21393
pull_request: https://github.com/python/cpython/pull/22355

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-09-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +21392
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22354

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41831] Restore default __str__ of tkinter.EventType

2020-09-22 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The tkinter.EventType enum was introduced in issue27294. It implements __str__ 
as returning the name for the sole purpose of using in Event.__repr__(). But 
overriding __str__ in the str subclass may be not good idea, because different 
code will get different string representation, depending on whether it calls 
str() explicitly or implicitly (Python code) or read the content of the str 
object directly using C API (C code).

The following code sets EventType.__str__ = str.__str__, so both method will 
get the same value. Instead Event.__repr__() was changed to use the name of the 
enum member directly.

--
components: Tkinter
messages: 377306
nosy: ethan.furman, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
status: open
title: Restore default __str__ of tkinter.EventType
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com