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: Wrong comment in socket documentation
Type: Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: benjamin.peterson, georg.brandl, giampaolo.rodola
Priority: normal Keywords:

Created on 2008-05-04 05:08 by giampaolo.rodola, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg66191 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2008-05-04 05:08
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').
msg66199 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-04 09:15
Thanks, fixed in r62695.
msg66245 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2008-05-04 21:53
http://docs.python.org/dev/library/socket.html#example
The second example (the IPv4/IPv6 server) still reports the local interface.
msg66246 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-05-04 22:02
The online docs probably haven't rebuilt yet.
msg66250 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2008-05-04 22:26
Fine. I just thought you had modified it only in one place.
msg66288 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-05 21:07
Fixed in r62740, thanks!
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 47001
2008-05-05 21:07:24georg.brandlsetmessages: + msg66288
2008-05-04 22:26:53giampaolo.rodolasetmessages: + msg66250
2008-05-04 22:02:37benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg66246
2008-05-04 21:53:34giampaolo.rodolasetmessages: + msg66245
2008-05-04 09:15:35georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg66199
2008-05-04 05:08:29giampaolo.rodolacreate