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

Method __eq__

Lib/test/test_argparse.py:2050–2058  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2048 self.name = name
2049
2050 def __eq__(self, other):
2051 if other not in self.seen:
2052 text = 'Check that file is writable.'
2053 if 'b' in other.mode:
2054 text = text.encode('ascii')
2055 other.write(text)
2056 other.close()
2057 self.seen.add(other)
2058 return self.name == other.name
2059
2060
2061@os_helper.skip_if_dac_override

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected