Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 369 Bytes

consider-using-dict-comprehension.md

File metadata and controls

11 lines (6 loc) · 369 Bytes

Pattern: Missing use of dict comprehension

Issue: -

Description

Although there is nothing syntactically wrong with this code, it is hard to read and can be simplified to a dict comprehension. Also it is faster since you don't need to create another transient list.

Further Reading