MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / A

Class A

test/sql/test_external_traversal.py:68–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 # define deep equality semantics as well as deep
67 # identity semantics.
68 class A(ClauseElement):
69 __visit_name__ = "a"
70 _traverse_internals = []
71
72 def __init__(self, expr):
73 self.expr = expr
74
75 def is_other(self, other):
76 return other is self
77
78 __hash__ = ClauseElement.__hash__
79
80 def __eq__(self, other):
81 return other.expr == self.expr
82
83 def __ne__(self, other):
84 return other.expr != self.expr
85
86 def __str__(self):
87 return "A(%s)" % repr(self.expr)
88
89 class B(ClauseElement):
90 __visit_name__ = "b"

Callers 4

test_test_classesMethod · 0.70
test_cloneMethod · 0.70
test_no_cloneMethod · 0.70
test_change_in_placeMethod · 0.70

Calls

no outgoing calls

Tested by 4

test_test_classesMethod · 0.56
test_cloneMethod · 0.56
test_no_cloneMethod · 0.56
test_change_in_placeMethod · 0.56