-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
bpo-35598: IDLE: Refactor globals in config_key.py #11392
Conversation
* Move translate_key to module level * Move key tuples to module level
Separate load_final_key_list() is no longer needed after all but one of its lines are moved to global scope.
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.
This will make initial import slightly slower, repeated instantiations slightly faster, but maybe a millisecond either way. Removing the now unneeded function and its call makes the globalization look even more worthwhile.
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-11393 is a backport of this pull request to the 3.7 branch. |
Move translate_key() and constant tuples to module level. Inline the remnant one-line function. (cherry picked from commit b4ea8bb) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
https://bugs.python.org/issue35598