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

MultiDict.iterkeys in python 3 #1112

Open
akva opened this issue Nov 27, 2018 · 1 comment
Open

MultiDict.iterkeys in python 3 #1112

akva opened this issue Nov 27, 2018 · 1 comment

Comments

@akva
Copy link

akva commented Nov 27, 2018

bottle/bottle.py

Line 2120 in 9fb3b05

iterkeys = keys

Why is this line here? .iterkeys is not supported in Python 3.

@defnull
Copy link
Member

defnull commented Nov 27, 2018

To offer the same API in python 2 and 3 and simplify some test cases, if I remember correctly. Not the best design decision that was ever made, but these aliases probably do not hurt much. Removing them is an option, though, by adding a deprecation warning to them and rewrite the tests that use them.

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