mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Merge 3.4
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user