Skip to content
Commit db4f7128 authored by Jon Dufresne's avatar Jon Dufresne
Browse files

Prefer iter(dict) instead of dict.keys()

They are equivalent for iterating so remove the additional function
call.

Pattern identified as outdated by Lennart Regebro's PyCon 2017 talk
"Prehistoric Patterns in Python"

https://www.youtube.com/watch?v=V5-JH23Vk0I
parent d890b8b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment