key in list
iteritems()
In Python, large performance gains can be obtained by using appropriate functions and directives. Avoid the following anti-patterns to reduce overhead and make your code more performant.