Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b517596

Browse files
committed
Issue #15901: Change example to use byte string instead of string
1 parent 48d8d21 commit b517596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/multiprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ process::
10931093

10941094
n = Value('i', 7)
10951095
x = Value(c_double, 1.0/3.0, lock=False)
1096-
s = Array('c', 'hello world', lock=lock)
1096+
s = Array('c', b'hello world', lock=lock)
10971097
A = Array(Point, [(1.875,-6.25), (-5.75,2.0), (2.375,9.5)], lock=lock)
10981098

10991099
p = Process(target=modify, args=(n, x, s, A))

0 commit comments

Comments
 (0)