[issue35700] Place, Pack and Grid should return the widget

Serhiy Storchaka report at bugs.python.org
Wed Jan 9 09:51:35 EST 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Methods place(), pack() and grid() correspond to corresponding Tk commands. These commands return nothing (empty string) in Tk, and Tkinter methods return nothing (None) in Python. If they will became returning something meaningful in future versions of Tk, we will lost a chance to translate this to Python if make them now returning the widget itself.

Note also that method chaining is not commonly used in Python. This code would look pretty unpythonic.

For these reasons I am against this idea.

----------
nosy: +gpolo, serhiy.storchaka, terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35700>
_______________________________________


More information about the Python-bugs-list mailing list