#2752: wrong meaning of '' for socket host.

This commit is contained in:
Georg Brandl 2008-05-04 09:15:04 +00:00
parent 8334330951
commit 08c72187ef
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ The first two examples support IPv4 only. ::
# Echo server program
import socket
HOST = '' # Symbolic name meaning the local host
HOST = '' # Symbolic name meaning all available interfaces
PORT = 50007 # Arbitrary non-privileged port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT))