Message368960
The documentation for socket.getfqdn() includes this info:
"In case no fully qualified domain name is available, the hostname as returned by gethostname() is returned."
However, that does not appear to be correct. To reproduce a case that exhibits contrary behavior:
>>> import socket
>>> socket.getfqdn("test")
'test'
>>> socket.gethostname()
'centos7minimal.osric.net' |
|
Date |
User |
Action |
Args |
2020-05-15 17:02:26 | cherdt | set | recipients:
+ cherdt, docs@python |
2020-05-15 17:02:26 | cherdt | set | messageid: <1589562146.75.0.739099613667.issue40635@roundup.psfhosted.org> |
2020-05-15 17:02:26 | cherdt | link | issue40635 messages |
2020-05-15 17:02:26 | cherdt | create | |
|