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