bpo-30728: IDLE: Refactor configdialog to PEP8 names and add docstrings#2307
bpo-30728: IDLE: Refactor configdialog to PEP8 names and add docstrings#2307terryjreedy merged 5 commits into
Conversation
mlouielu
left a comment
There was a problem hiding this comment.
My computer dead at configdialog.py diff :(, I'll seperate by review.
Sorry, something went wrong.
mlouielu
left a comment
There was a problem hiding this comment.
I leave some point, the comment first word should be capitalized.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you Cheryl for the work this involved and Louie for the non-trivial review. I did not review every change but focused on Louie's comments, as they raise a couple of meta-issues of how much to do in one patch. As a result, I have a better idea how to move forward.
This PR does not belong to #27388. That aside, I think this PR does too much at once and may be pre-mature.
After submitting this, I will open a new issue for modernizing configdialog. Modernizing includes: adding docstrings; changing to PEP8 names; changing most comments to sentences; reviewing and possibly changing overly cryptic existing PEP8 names; and at least metaphorically, adding tests. For a large file like config dialog, I would like a separate PR for each of these.
Louie's comment on config_key got me thinking again about the problem of breaking existing tracker patches, especially any that are ready to go. There were no patches that I know of for textview and I don't intend to apply the existing one for About IDLE as is.
Many of the comments below also appear above as responses to Louie's comments. Most can also be understood as they are.
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
After reviewing existing patches and reviewing this one and thinking about my experience with merges, I decided what to revert or delay for a future patch, what to keep for this one (most of it), or add to this one Just a few things), with an eye to minimizing work over the next several patches for configdialog. More on the issue.
Sorry, something went wrong.
|
I've made the changes to configdialog to only include the name changes and the code change in init. I hope I got the file to the correct state for review. |
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
If no problems arise when I test the dialog, I will merge this.
Sorry, something went wrong.
|
I tested by trying out and applying an example of every possible change on configdialog and checking for the correct change in the user configuration files. (An editor that reloads changed files, Notepad++, was essential for this. ) |
Sorry, something went wrong.
from tkinter import *to import each name.