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

Wrong comment in socket documentation #47001

Closed
giampaolo opened this issue May 4, 2008 · 6 comments
Closed

Wrong comment in socket documentation #47001

giampaolo opened this issue May 4, 2008 · 6 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@giampaolo
Copy link
Contributor

BPO 2752
Nosy @birkenfeld, @giampaolo, @benjaminp

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 = 'https://github.com/birkenfeld'
closed_at = <Date 2008-05-04.09:15:35.026>
created_at = <Date 2008-05-04.05:08:28.954>
labels = ['docs']
title = 'Wrong comment in socket documentation'
updated_at = <Date 2008-05-05.21:07:24.015>
user = 'https://github.com/giampaolo'

bugs.python.org fields:

activity = <Date 2008-05-05.21:07:24.015>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-05-04.09:15:35.026>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2008-05-04.05:08:28.954>
creator = 'giampaolo.rodola'
dependencies = []
files = []
hgrepos = []
issue_num = 2752
keywords = []
message_count = 6.0
messages = ['66191', '66199', '66245', '66246', '66250', '66288']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'giampaolo.rodola', 'benjamin.peterson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue2752'
versions = ['Python 2.6']

@giampaolo
Copy link
Contributor Author

In the example section of socket module I see:

HOST = '' # Symbolic name meaning the local host
PORT = 50007 # Arbitrary non-privileged port

'', at least on Windows, is an alias for telling the socket to listen on
all available interfaces while 'localhost' is used for referencing the
local interface (usually '127.0.0.1').

@giampaolo giampaolo added the docs Documentation in the Doc dir label May 4, 2008
@birkenfeld
Copy link
Member

Thanks, fixed in r62695.

@giampaolo
Copy link
Contributor Author

http://docs.python.org/dev/library/socket.html#example
The second example (the IPv4/IPv6 server) still reports the local interface.

@benjaminp
Copy link
Contributor

The online docs probably haven't rebuilt yet.

@giampaolo
Copy link
Contributor Author

Fine. I just thought you had modified it only in one place.

@birkenfeld
Copy link
Member

Fixed in r62740, thanks!

@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
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

3 participants