-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-136061: IDLE - modernize idlelib code in editor.Editor.load_extension methodname processing #134874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I believe that the 6 lines from 1205 to 1210 can be replaced by 2 lines -- an re.match and an f-string. I will submit an alternate proposal later. I believe that the input |
ZeroIntensity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming this is the fix that we go with, let's add a test case.
Misc/NEWS.d/next/Security/2025-05-29-03-24-18.gh-issue-134873.dziqkQ.rst
Outdated
Show resolved
Hide resolved
|
@terryjreedy so should I leave the code for now, or should I go ahead
and replace with the re.match thing you are going to propose?
@ZeroIntensity so do you mean that active voice is preferred in
release notes? I can replace this specific case with the change that
you are suggesting, but I'm asking for advice in this aspect for
future News.
|
|
Yes, I think it can be. Will fix.
… Message ID: ***@***.***>
|
|
@johnzhou721 Lines 1373 to 1378 in 5ab66a8
As an example, I successfully utilized Gemini 2.5 Pro to generate a reasonable fix for this problem. Could you give it a try? |
|
@kexinoh Yes, I would give it a try once I have time; however, I am working on something else right now -- is it acceptable if I delay this by about a day or so? (if anyone else has a fix ready before I get to this, feel free to make a pr onto the branch of my pr and I'll merge it into my PR) |
…dziqkQ.rst Co-authored-by: Peter Bierma <[email protected]>
|
@kexinoh I have a small amount of time not enough to work on anything else before I end my day so I attempted the issue you pointed out -- but can't test though. |
Where? How? For what? Thanks! @ZeroIntensity |
We need a test case in |
|
Sorry for my unclear comment. I see now that it can be be interpreted incorrectly. I questioned not the change (which LGTM), but necessary of the NEWS entry for it. |
|
I have made the requested changes; please review again FYI: I credited @terryjreedy as well since they came up with the approach for combining it into all one line. (@terryjreedy: not sure about your pronouns, sorry for using they) |
|
Thanks for making the requested changes! @terryjreedy: please review the changes made to this pull request. |
My suspicion would be that the push to |
Misc/NEWS.d/next/IDLE/2025-06-28-13-29-52.gh-issue-136061.EQYuVW.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Zachary Ware <[email protected]>
Co-authored-by: Zachary Ware <[email protected]>
|
Wow. Apparently I forgot to resolve a conversation. Since this is finalized, merging main to retrigger this. @terryjreedy Have you had time to rereview this yet? Thanks! |
|
Hmm... apparently the labels in the sidebar is triggering the issue, not the Resolve Conversation on GitHub. Sorry for merging main again! |
|
@terryjreedy Is there anything else I need to do to get this merged, or are you just busy? Thanks! |
|
#136556 tracks the refactoring for the backspace part... I don't know if any information will need to be included there. The issue in its curretn form is quite vague and I am clueless about what to do. |
|
@terryjreedy Is there any chance that you'd have time to look at this again? Thank you! |
Lib/idlelib/News3.txt
Outdated
| @@ -1,9 +1,12 @@ | |||
| What's New in IDLE 3.14.0 | |||
| (since 3.13.0) | |||
| Released on 2025-10-07 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the right file or right section to add to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was mentioned by @terryjreedy that this is the file to add to. Resolving.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK but this is not for version 3.14 released on october 7, is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merwok I'm not entirely sure how backports will be handled--but it seems that there's no other news for IDLE 3.15 yet, so I added the section header. Thanks for letting me know, and also -- I've renamed the PR.
|
Can the PR title be changed to be more useful? Every PR is a change. Good titles say «Add thing to spam» or «Fix eggs with ham» |
A DOS by Quadratic complexity issue is fixed in idlelib. Part of (but does not fix) #134873.