You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
I don't get OrderedDict working, because I am getting error on
self.__update(*args, **kwds)
TypeError: unbound method update() must be called with MutableMapping instance as first argument (got list instance instead)
self.__update is assigned to MutableMapping.update at class level.
It is not possible to get instance of MutableMapping, because there is abstractmethods on it.
TypeError: Can't instantiate abstract class MutableMapping with abstract methods __delitem__, __getitem__, __iter__, __len__, __setitem__
Is there a way to work-around those?
The text was updated successfully, but these errors were encountered:
I'm surprised that works in CPython. Here's something similar that fails:
>>> class A(object):
... def foo(self):
... pass
...
>>> class B(object):
... bar = A.foo
...
>>> B().bar()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unbound method foo() must be called with A instance as first argument (got nothing instead)
I'm not exactly sure what's going on. Will need to do some more investigation.
I don't get OrderedDict working, because I am getting error on
self.__update is assigned to MutableMapping.update at class level.
It is not possible to get instance of MutableMapping, because there is abstractmethods on it.
Is there a way to work-around those?
The text was updated successfully, but these errors were encountered: