Merge 3.4

This commit is contained in:
Andrew Svetlov 2014-07-02 07:21:31 +03:00
commit 09db75fcd6

View file

@ -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()