[issue40635] Documentation for socket.getfqdn incorrect?

New submission from Chris Herdt <cherdt@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@python components: Documentation messages: 368960 nosy: cherdt, docs@python priority: normal severity: normal status: open title: Documentation for socket.getfqdn incorrect? versions: Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40635> _______________________________________

Change by Joannah Nanjekye <nanjekyejoannah@gmail.com>: ---------- nosy: +christian.heimes _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40635> _______________________________________
participants (2)
-
Chris Herdt
-
Joannah Nanjekye