mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
Merge 3.4
This commit is contained in:
commit
09db75fcd6
1 changed files with 4 additions and 2 deletions
|
|
@ -262,7 +262,9 @@ that only one process prints to standard output at a time::
|
||||||
|
|
||||||
def f(l, i):
|
def f(l, i):
|
||||||
l.acquire()
|
l.acquire()
|
||||||
|
try:
|
||||||
print('hello world', i)
|
print('hello world', i)
|
||||||
|
finally:
|
||||||
l.release()
|
l.release()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue