Title is pretty self explanatory.
Right the following causes an error:
```py
>>> ipaddress.IPv4Address('localhost')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Anaconda3\lib\ipaddress.py", line 1252, in __init__
self._ip = self._ip_int_from_string(addr_str)
File "C:\ProgramData\Anaconda3\lib\ipaddress.py", line 1144, in
_ip_int_from_string
raise AddressValueError("Expected 4 octets in %r" % ip_str)
ipaddress.AddressValueError: Expected 4 octets in 'localhost'
```
But it should just either convert `localhost` to `127.0.0.1` or maybe store
`localhost` internally somehow.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/3RAUOQ4FOSX5KCJEIQUOF2RC665CHPF7/
Code of Conduct: http://python.org/psf/codeofconduct/