diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-09-21 03:13:14 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-09-21 03:13:14 (GMT) |
commit | b216896df4c6ad8639f41af5d800854f1d90571e (patch) | |
tree | 55b87b70c876f22960862b03ee448b71967de6a6 /Doc/library | |
parent | 192c103b5e2641eafb6f6ee07d0961b0b9e0c6eb (diff) | |
parent | 44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743 (diff) | |
download | cpython-b216896df4c6ad8639f41af5d800854f1d90571e.zip cpython-b216896df4c6ad8639f41af5d800854f1d90571e.tar.gz cpython-b216896df4c6ad8639f41af5d800854f1d90571e.tar.bz2 |
Issue #25169: os.getppid() is available on Windows since Python 3.2.
Patch by Bar Harel.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/multiprocessing.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 2370323..9ce361df 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -65,8 +65,7 @@ To show the individual process IDs involved, here is an expanded example:: def info(title): print(title) print('module name:', __name__) - if hasattr(os, 'getppid'): # only available on Unix - print('parent process:', os.getppid()) + print('parent process:', os.getppid()) print('process id:', os.getpid()) def f(name): |