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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2018-10-12.13:42:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Tkinter sources are old and don't conform PEP 8. Usually we don't reformat existing sources for avoiding problems with backporting and breaking the history of lines. But I think that we can make some refinements in Tkinter sources.

The tkinter module contains a lot of small methods (often just 1 or 2 lines of code), but with large multiline docstrings. Currently methods are not separated by blank lines. As result, the code of the method is visually closer to the header of the following method that to the header of its method.

The proposed patch adds empty lines between methods and double empty lines between class (and removes few redundant empty lines). Most changes are made automatically:

    autopep8 --select E301,E303,E305 --in-place --recursive Lib/tkinter/

and edited after this (added missed empty lines and removed few unwanted changes).

Since it affects only empty lines, it doesn't break the lines history. And I think this will not make backporting more difficult.
Date User Action Args
2018-10-12 13:42:07serhiy.storchakasetrecipients: + serhiy.storchaka
2018-10-12 13:42:07serhiy.storchakasetmessageid: <>
2018-10-12 13:42:07serhiy.storchakalinkissue34964 messages
2018-10-12 13:42:07serhiy.storchakacreate