Open JensRantil opened 9 years ago
Since using Python 2 nowadays is in a way an anti-pattern, one shouldn't recommend using iteritems()
any more. And one shouldn't write xrange()
any more, too.
-- Sorry I haven't seen the Python 3 hint in the text, and saw this open issue.
http://docs.quantifiedcode.com/python-anti-patterns/performance/not_using_iteritems_to_iterate_large_dict.html should probably also mention that using
items()
isn't an anti-pattern in Python in whichiteritems()
has been removed anditems()
always returns an iterator.