New submission from Chris Herdt <che...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40635>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to