Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iteritems improvement #43

Open
JensRantil opened this issue May 3, 2015 · 1 comment
Open

iteritems improvement #43

JensRantil opened this issue May 3, 2015 · 1 comment

Comments

@JensRantil
Copy link
Contributor

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 which iteritems() has been removed and items() always returns an iterator.

@smartsammler
Copy link
Contributor

smartsammler commented Jan 12, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants