-
Notifications
You must be signed in to change notification settings - Fork 461
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
Use dict instead of OrderedDict for python 3.6 #252
Comments
The main function |
Is this available in the pypi package or the source package only? |
it is in pypi |
This is a CPython implementation detail for Python 3.6, although I think it's part of the dict spec from 3.7 onwards? |
Yes it is. 👍
https://docs.python.org/3.7/library/collections.html?highlight=ordereddict#ordereddict-objects |
And since Python3.6 is now end-of-life (https://pythonspeed.com/articles/stop-using-python-3.6), this project should just blindly use "dict" instead of "OrderedDict". |
Is that documented? How would I use that? |
@manngo you can see an example here xmltodict/tests/test_xmltodict.py Line 350 in ae19c45
|
@gotofritz Thanks, that worked. It makes the result much easier to work with.
|
For Python >= 3.6, dictionary are Sorted by insertion order, so avoid the use of OrderedDict for those python versions.
The text was updated successfully, but these errors were encountered: