[New-bugs-announce] [issue40635] Documentation for socket.getfqdn incorrect?
Chris Herdt
report at bugs.python.org
Fri May 15 13:02:26 EDT 2020
New submission from Chris Herdt <cherdt at gmail.com>:
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'
----------
assignee: docs at python
components: Documentation
messages: 368960
nosy: cherdt, docs at python
priority: normal
severity: normal
status: open
title: Documentation for socket.getfqdn incorrect?
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40635>
_______________________________________
More information about the New-bugs-announce
mailing list