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

OrderedDict for python < 2.7 #42

Closed
benjaminp opened this issue Oct 11, 2013 · 3 comments
Closed

OrderedDict for python < 2.7 #42

benjaminp opened this issue Oct 11, 2013 · 3 comments

Comments

@benjaminp
Copy link
Owner

Originally reported by: Konsta Vesterinen (Bitbucket: kvesteri, GitHub: kvesteri)


It would be great if six would provide OrderedDict for python versions below 2.7.


@benjaminp
Copy link
Owner Author

Surely, you can just use the OrderedDict backport PyPI package?

@benjaminp
Copy link
Owner Author

Original comment by Konsta Vesterinen (Bitbucket: kvesteri, GitHub: kvesteri):


Ok I was thinking that instead of writing this:

#!python

try:
    from collections import OrderedDict
except ImportError:
    from ordereddict import OrderedDict

I could simply write:

#!python
import six

six.OrderedDict

@benjaminp
Copy link
Owner Author

I don't think I want to bundle a large thing like OrderedDict.

nedko pushed a commit to LADI/py-six that referenced this issue Nov 12, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant