-
Notifications
You must be signed in to change notification settings - Fork 104
remove backport of collections.OrderedDict for Py2.7 support #218
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
base: master
Are you sure you want to change the base?
Conversation
collections.OrderedDict is available since Python3.1 https://docs.python.org/3/library/collections.html#collections.OrderedDict
Given the minimum supported python is 3 |
I've heard "It is an implementation detail" and should not be relied on. |
Looks like 3.7 is the minimum python where all dicts are ordered. |
It is required from 3.7. https://mail.python.org/pipermail/python-dev/2017-December/151283.html |
So merge this in now and change it again later when 3.7 is minimum |
@a-detiste : I don't have any objections to this PR, but also... this code-base is essentially dead. If things aren't broken, my general inclination is not to fix them. We want to the keep the package working, at least until more packages have successfully transitioned to I do appreciate you making the effort to improve things here, and I might merge it in if we do another release... which it looks like we might need to do for pandas 3 compatibility. |
@matthewwardrop this is part of a global effort to review all the remaining |
@a-detiste are the compat files broken in your experience? If not, every change introduces some amount of risk of breakage for longstanding use cases, which then would require additional maintenance... And so is likely not worth it. I know this project still has many users, but it is also a "dead" project. This project is more than an order of magnitude slower than formulaic for most common tasks, and lacks many of the cleanups and niceties of its successor. So, in short, my goal is to keep it "undead" 😜 until it is no longer needed... But little more. |
From our point of vue, https://www.statsmodels.org/stable/install.html |
@a-detiste : statsmodels has actually been ported already by @bashtage , but I don't think a stable version has been released with it yet. Until then, as I mentioned, the goal is to keep things working as close to exactly as they are for the foreseeable future. |
collections.OrderedDict is available since Python3.1
https://docs.python.org/3/library/collections.html#collections.OrderedDict