[Python-checkins] cpython (3.2): Issue #15901: Change example to use byte string instead of string

richard.oudkerk python-checkins at python.org
Mon Sep 10 14:08:03 CEST 2012


http://hg.python.org/cpython/rev/ddb406904be1
changeset:   78953:ddb406904be1
branch:      3.2
parent:      78949:71e854617297
user:        Richard Oudkerk <shibturn at gmail.com>
date:        Mon Sep 10 13:00:33 2012 +0100
summary:
  Issue #15901: Change example to use byte string instead of string

files:
  Doc/library/multiprocessing.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -1093,7 +1093,7 @@
 
        n = Value('i', 7)
        x = Value(c_double, 1.0/3.0, lock=False)
-       s = Array('c', 'hello world', lock=lock)
+       s = Array('c', b'hello world', lock=lock)
        A = Array(Point, [(1.875,-6.25), (-5.75,2.0), (2.375,9.5)], lock=lock)
 
        p = Process(target=modify, args=(n, x, s, A))

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list