MCPcopy Index your code
hub / github.com/python/cpython / __eq__

Method __eq__

Lib/statistics.py:1431–1435  ·  view source on GitHub ↗

Two NormalDist objects are equal if their mu and sigma are both equal.

(x1, x2)

Source from the content-addressed store, hash-verified

1429 __rmul__ = __mul__
1430
1431 def __eq__(x1, x2):
1432 "Two NormalDist objects are equal if their mu and sigma are both equal."
1433 if not isinstance(x2, NormalDist):
1434 return NotImplemented
1435 return x1._mu == x2._mu and x1._sigma == x2._sigma
1436
1437 def __hash__(self):
1438 "NormalDist objects hash equal if their mu and sigma are both equal."

Callers 1

test_equalityMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_equalityMethod · 0.76