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

Method __str__

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

Source from the content-addressed store, hash-verified

1425 return self.network.hostmask
1426
1427 def __str__(self):
1428 return '%s/%d' % (self._string_from_ip_int(self._ip),
1429 self._prefixlen)
1430
1431 def __eq__(self, other):
1432 address_equal = IPv4Address.__eq__(self, other)

Callers

nothing calls this directly

Calls 1

_string_from_ip_intMethod · 0.45

Tested by

no test coverage detected