diff options
author | Georg Brandl <georg@python.org> | 2010-04-08 06:33:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-04-08 06:33:16 (GMT) |
commit | b3959bd63e963e5e88135b7e482f3622e923d7e3 (patch) | |
tree | 1536ee6359032e40ca7a64272221f3941dea5476 /Doc | |
parent | 0091e5ecd045b86560d5c1ccc6a33ec606967630 (diff) | |
download | cpython-b3959bd63e963e5e88135b7e482f3622e923d7e3.zip cpython-b3959bd63e963e5e88135b7e482f3622e923d7e3.tar.gz cpython-b3959bd63e963e5e88135b7e482f3622e923d7e3.tar.bz2 |
Fix indentation.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/multiprocessing.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 48b1ccc..f240648 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -61,15 +61,15 @@ object and then calling its :meth:`~Process.start` method. :class:`Process` follows the API of :class:`threading.Thread`. A trivial example of a multiprocess program is :: - from multiprocessing import Process + from multiprocessing import Process def f(name): print('hello', name) - if __name__ == '__main__': - p = Process(target=f, args=('bob',)) - p.start() - p.join() + if __name__ == '__main__': + p = Process(target=f, args=('bob',)) + p.start() + p.join() To show the individual process IDs involved, here is an expanded example:: |