mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix indentation.
This commit is contained in:
parent
bc1309255e
commit
edd7d95581
1 changed files with 6 additions and 6 deletions
|
@ -109,12 +109,12 @@ processes:
|
||||||
def f(q):
|
def f(q):
|
||||||
q.put([42, None, 'hello'])
|
q.put([42, None, 'hello'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
q = Queue()
|
q = Queue()
|
||||||
p = Process(target=f, args=(q,))
|
p = Process(target=f, args=(q,))
|
||||||
p.start()
|
p.start()
|
||||||
print q.get() # prints "[42, None, 'hello']"
|
print q.get() # prints "[42, None, 'hello']"
|
||||||
p.join()
|
p.join()
|
||||||
|
|
||||||
Queues are thread and process safe.
|
Queues are thread and process safe.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue