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
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.The text was updated successfully, but these errors were encountered: