Uh oh!
There was an error while loading. Please reload this page.
bpo-40635: Fix getfqdn() docstring and docs - #27971
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Fidget-Spinner
left a comment
There was a problem hiding this comment.
Thanks Andrei, this LGTM. But let's hear from a socket/networking expert first (and whether they want a news item).
| host, if available. The first name which includes a period is selected. If FQDN is not | ||
| available and *name* is empty or is ``'0.0.0.0'``, hostname from :func:`gethostname` is | ||
| returned. Otherwise, *name* is returned unchanged. |
There was a problem hiding this comment.
Please don't exceed 79 characters per line.
| host, if available. The first name which includes a period is selected. If FQDN is not | |
| available and *name* is empty or is ``'0.0.0.0'``, hostname from :func:`gethostname` is | |
| returned. Otherwise, *name* is returned unchanged. | |
| host, if available. The first name which includes a period is selected. In | |
| case no fully qualified domain name is available and *name* was provided, | |
| it is returned unchanged. If *name* was empty or equal to ``'0.0.0.0'``, | |
| the hostname as returned by :func:`gethostname` is returned. |
There was a problem hiding this comment.
'as returned ... is returned' reads a bit awkward I think, is it okay if I use the same wording as in your suggestion for the docstring? ; which is:
[...] hostname from gethostname() is returned.
There was a problem hiding this comment.
Sure, agreed. I just used what was originally in the doc but you're right that the docstring version is an improvement.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
miss-islington
commented
Aug 26, 2021
Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit fdcb675) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
bedevere-bot
commented
Aug 26, 2021
GH-27977 is a backport of this pull request to the 3.10 branch. |
bedevere-bot
commented
Aug 26, 2021
GH-27978 is a backport of this pull request to the 3.9 branch. |
Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit fdcb675) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
akulakov
commented
Aug 26, 2021
Thanks @ambv and @Fidget-Spinner for reviewing :) |
https://bugs.python.org/issue40635