This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: problem with socket.gethostname documentation
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: maltehelmert, nnorwitz
Priority: normal Keywords:

Created on 2006-11-20 18:10 by maltehelmert, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30634 - (view) Author: Malte Helmert (maltehelmert) Date: 2006-11-20 18:10
The socket.gethostname documentation contains the following note:

"Note: gethostname() doesn't always return the fully qualified domain name; use gethostbyaddr(gethostname()) (see below)."

However, the socket.gethostbyaddr documentation contains the following piece of information:
"To find the fully qualified domain name, use the function getfqdn()."

I suggest that the note in socket.gethostname be changed to:
"Note: gethostname() doesn't always return the fully qualified domain name; use getfqdn() (see above)."
msg30635 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-11-21 06:25
Good catch!  Thanks.

Committed revision 52815. (2.6)
Committed revision 52816. (2.5)
(Probably affects all version back to 2.0 or so.)
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44257
2006-11-20 18:10:25maltehelmertcreate