You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the discussion of the motivation about this rule can be found in this very detailed StackOverflow post
Example
# Badkeyindict.keys()
# Goodkeyindict
Basically, the later way of doing this pythonic and slightly more performant and arguably more Readable. The previous method only exists for legacy code (<= python 2.2). So there is no reason to use the former in modern codebases.
The text was updated successfully, but these errors were encountered:
Explanation
Most of the discussion of the motivation about this rule can be found in this very detailed StackOverflow post
Example
Basically, the later way of doing this pythonic and slightly more performant and arguably more Readable. The previous method only exists for legacy code (<= python 2.2). So there is no reason to use the former in modern codebases.
The text was updated successfully, but these errors were encountered: