-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
RcParams is fundamentally broken #12576
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
Comments
Fun fact: This results in |
Could we just implement |
Yes, implementing I assume that this worked when Anyway, in the long term, we should aim at just inheriting from |
I think it's a bug in CPython: https://bugs.python.org/issue35063 |
Not having fully read the bug, but implementing |
Yes. |
Bug report
Anyone tried:
A great example of shooting yourself in the foot with multiple inheritance. Essentially, we do
but do not reimplement
__len__
. You can work out the consequences yourself.Proposed solution
Do not inherit
RcParams
from dict, and use a private data dict instead.The text was updated successfully, but these errors were encountered: