Kaydet (Commit) edd7d955 authored tarafından Georg Brandl's avatar Georg Brandl

Fix indentation.

üst bc130925
...@@ -109,12 +109,12 @@ processes: ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment