def _binop(self, other, *, _opnode=opnode, _sym=sym):
othername, other, constants = _normalize_arg(
other,
self._constants,
)
return __class__(
'%s %s %s' % (self._pname, _sym, othername),
ast.Compare(
left=self._tree,
ops=[_opnode()],
comparators=[other],
),
merge(constants, getattr(other, '_constants', {})),
)
评论列表
文章目录