diff -r c5ef12cfcb44 -r 7c078db2df2c Doc/library/multiprocessing.rst --- a/Doc/library/multiprocessing.rst Thu Oct 07 13:06:49 2010 +0200 +++ b/Doc/library/multiprocessing.rst Thu Oct 07 22:24:12 2010 +0200 @@ -1757,8 +1757,8 @@ If *authenticate* is ``True`` (``False`` by default) or *authkey* is not ``None`` then digest authentication is used. - If *authkey* is a string then it will be used as the authentication key; - otherwise it must be *None*. + If *authkey* is a string (and in that case it must be a byte string) then it + will be used as the authentication key; otherwise it must be *None*. If *authkey* is ``None`` and *authenticate* is ``True`` then ``current_process().authkey`` is used as the authentication key. If @@ -1807,14 +1807,14 @@ from array import array address = ('localhost', 6000) # family is deduced to be 'AF_INET' - listener = Listener(address, authkey='secret password') + listener = Listener(address, authkey=b'secret password') conn = listener.accept() print('connection accepted from', listener.last_accepted) conn.send([2.25, None, 'junk', float]) - conn.send_bytes('hello') + conn.send_bytes(b'hello') conn.send_bytes(array('i', [42, 1729])) @@ -1828,7 +1828,7 @@ from array import array address = ('localhost', 6000) - conn = Client(address, authkey='secret password') + conn = Client(address, authkey=b'secret password') print(conn.recv()) # => [2.25, None, 'junk', float]