MCPcopy Create free account
hub / github.com/python/cpython / __str__

Method __str__

Lib/ipaddress.py:601–602  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

599 return '%s(%r)' % (self.__class__.__name__, str(self))
600
601 def __str__(self):
602 return str(self._string_from_ip_int(self._ip))
603
604 def __hash__(self):
605 return hash(hex(int(self._ip)))

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
_string_from_ip_intMethod · 0.45

Tested by

no test coverage detected