>>> from ipaddress import _BaseAddress
>>> _BaseAddress()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/narel/.pyenv/versions/3.10.9/lib/python3.10/ipaddress.py", line 607, in __repr__
return '%s(%r)' % (self.__class__.__name__, str(self))
File "/home/narel/.pyenv/versions/3.10.9/lib/python3.10/ipaddress.py", line 610, in __str__
return str(self._string_from_ip_int(self._ip))
AttributeError: '_BaseAddress' object has no attribute '_string_from_ip_int'. Did you mean: '_prefix_from_ip_int'?
Bug report
ipaddress._BaseAddress class has no
_string_from_ip_intattribute, but it is used in__str__method:Your environment