diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-09-21 03:13:36 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-09-21 03:13:36 (GMT) |
commit | ad8dcb703e61764f8aefd39a21826c0127a7746a (patch) | |
tree | bdacf47956cd49715a907042714930b56662a3b9 /Doc/library | |
parent | 3257b918926e79c229711b48f2ecffcf0b4834cb (diff) | |
parent | b216896df4c6ad8639f41af5d800854f1d90571e (diff) | |
download | cpython-ad8dcb703e61764f8aefd39a21826c0127a7746a.zip cpython-ad8dcb703e61764f8aefd39a21826c0127a7746a.tar.gz cpython-ad8dcb703e61764f8aefd39a21826c0127a7746a.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 e49e212..a6b005a 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): |