提交 092d52ac authored 作者: gdesjardins's avatar gdesjardins

Follow-up to changeset 4629:54cc960d58f8: raising NotImplementedError when

using Variable's comparison operators Need to swap inheritence order for class ScalarVariable: inherit _scalar_py_operators first, then Variable
上级 d41e956c
......@@ -393,10 +393,10 @@ class _scalar_py_operators:
def __rmod__(self,other): return mod(other,self)
def __rpow__(self,other): return pow(other,self)
class ScalarVariable(Variable, _scalar_py_operators):
class ScalarVariable(_scalar_py_operators, Variable):
pass
class ScalarConstant(Constant, _scalar_py_operators):
class ScalarConstant(_scalar_py_operators, Constant):
pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论