-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Description
@disconnect3d was analyzing stdlib code and noted several places with an old code pattern of a dict's .update method being called with a single element dict literal d.update({key: value})
instead of just d[key] = value
assignment. see PR which cleans these up. #136811
It avoids an unnecessary temporary dict and method call, less awkward code.
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)