Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for socket.getfqdn incorrect? #84815

Closed
cherdt mannequin opened this issue May 15, 2020 · 4 comments
Closed

Documentation for socket.getfqdn incorrect? #84815

cherdt mannequin opened this issue May 15, 2020 · 4 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir

Comments

@cherdt
Copy link
Mannequin

cherdt mannequin commented May 15, 2020

BPO 40635
Nosy @tiran, @ambv, @miss-islington, @cherdt, @akulakov
PRs
  • bpo-40635: Fix getfqdn() docstring and docs #27971
  • [3.10] bpo-40635: Fix getfqdn() docstring and docs (GH-27971) #27977
  • [3.9] bpo-40635: Fix getfqdn() docstring and docs (GH-27971) #27978
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-08-26.19:56:07.284>
    created_at = <Date 2020-05-15.17:02:26.737>
    labels = ['3.11', '3.9', '3.10', 'docs']
    title = 'Documentation for socket.getfqdn incorrect?'
    updated_at = <Date 2021-08-26.19:56:07.283>
    user = 'https://github.com/cherdt'

    bugs.python.org fields:

    activity = <Date 2021-08-26.19:56:07.283>
    actor = 'lukasz.langa'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-08-26.19:56:07.284>
    closer = 'lukasz.langa'
    components = ['Documentation']
    creation = <Date 2020-05-15.17:02:26.737>
    creator = 'cherdt'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40635
    keywords = ['patch']
    message_count = 4.0
    messages = ['368960', '400365', '400375', '400376']
    nosy_count = 6.0
    nosy_names = ['christian.heimes', 'docs@python', 'lukasz.langa', 'miss-islington', 'cherdt', 'andrei.avk']
    pr_nums = ['27971', '27977', '27978']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40635'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    @cherdt
    Copy link
    Mannequin Author

    cherdt mannequin commented May 15, 2020

    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'

    @cherdt cherdt mannequin assigned docspython May 15, 2020
    @cherdt cherdt mannequin added the docs Documentation in the Doc dir label May 15, 2020
    @cherdt cherdt mannequin assigned docspython May 15, 2020
    @cherdt cherdt mannequin added the docs Documentation in the Doc dir label May 15, 2020
    @ambv
    Copy link
    Contributor

    ambv commented Aug 26, 2021

    New changeset fdcb675 by andrei kulakov in branch 'main':
    bpo-40635: Fix getfqdn() docstring and docs (GH-27971)
    fdcb675

    @miss-islington
    Copy link
    Contributor

    New changeset 719af92 by Miss Islington (bot) in branch '3.10':
    bpo-40635: Fix getfqdn() docstring and docs (GH-27971)
    719af92

    @miss-islington
    Copy link
    Contributor

    New changeset f1e3fc4 by Miss Islington (bot) in branch '3.9':
    bpo-40635: Fix getfqdn() docstring and docs (GH-27971)
    f1e3fc4

    @ambv ambv added 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Aug 26, 2021
    @ambv ambv closed this as completed Aug 26, 2021
    @ambv ambv added 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Aug 26, 2021
    @ambv ambv closed this as completed Aug 26, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants