diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-07-02 04:21:31 (GMT) |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-07-02 04:21:31 (GMT) |
| commit | 09db75fcd64ea5056622ae744d31f494e719cd19 (patch) | |
| tree | 2cff7346686f998e97381470154c43b9349b07e7 | |
| parent | 5e456973a5de01082f9233beffb7fd2b05f6f9b0 (diff) | |
| parent | ee750d8f8da5a4789d6cae2879e6f7535baeef4c (diff) | |
| download | cpython-09db75fcd64ea5056622ae744d31f494e719cd19.zip cpython-09db75fcd64ea5056622ae744d31f494e719cd19.tar.gz cpython-09db75fcd64ea5056622ae744d31f494e719cd19.tar.bz2 | |
Merge 3.4
| -rw-r--r-- | Doc/library/multiprocessing.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 409b2cb..243b101 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -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() |
