summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-09-21 03:13:36 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-09-21 03:13:36 (GMT)
commitad8dcb703e61764f8aefd39a21826c0127a7746a (patch)
treebdacf47956cd49715a907042714930b56662a3b9 /Doc/library
parent3257b918926e79c229711b48f2ecffcf0b4834cb (diff)
parentb216896df4c6ad8639f41af5d800854f1d90571e (diff)
downloadcpython-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.rst3
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):