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

Method __sub__

Lib/ipaddress.py:593–596  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

591 return self.__class__(int(self) + other)
592
593 def __sub__(self, other):
594 if not isinstance(other, int):
595 return NotImplemented
596 return self.__class__(int(self) - other)
597
598 def __repr__(self):
599 return '%s(%r)' % (self.__class__.__name__, str(self))

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected