(Mac)当我使用:python命令时,Vim似乎正在拾取/usr/bin/python而不是我路径前面的那个(/Library/Frameworks/Python.framework/Versions/2.6/bin/python).这完全是编译时的事情还是我可以以某种方式覆盖它?
我遇到一个问题,我想使用 的 mixin 方法collections.abc.MutableSequence,但我还必须从其他方法继承。
class Thing(urwid.Pile, collections.abc.MutableSequence):
...
Run Code Online (Sandbox Code Playgroud)
我最终得到
TypeError: metaclass conflict: the metaclass of a derived class must be
a (non-strict) subclass of the metaclasses of all its bases
Run Code Online (Sandbox Code Playgroud)
我如何确定发生了什么并解决它?metaclass = ABCMeta没有达到目的,无论其价值如何。