MCPcopy Index your code
hub / github.com/RustPython/RustPython / __eq__

Method __eq__

Lib/argparse.py:1406–1409  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1404 setattr(self, name, kwargs[name])
1405
1406 def __eq__(self, other):
1407 if not isinstance(other, Namespace):
1408 return NotImplemented
1409 return vars(self) == vars(other)
1410
1411 def __contains__(self, key):
1412 return key in self.__dict__

Calls 2

isinstanceFunction · 0.85
varsFunction · 0.85

Tested by 1