Kaydet (Commit) 09db75fc authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Merge 3.4

......@@ -262,8 +262,10 @@ that only one process prints to standard output at a time::
def f(l, i):
l.acquire()
print('hello world', i)
l.release()
try:
print('hello world', i)
finally:
l.release()
if __name__ == '__main__':
lock = Lock()
......
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