From: Berker Peksag Date: Mon, 21 Sep 2015 03:12:50 +0000 (+0300) Subject: Issue #25169: os.getppid() is available on Windows since Python 3.2. X-Git-Tag: v3.5.1rc1~317^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743;p=thirdparty%2FPython%2Fcpython.git Issue #25169: os.getppid() is available on Windows since Python 3.2. Patch by Bar Harel. --- diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 93f59cdbf6c2..cd680c513fe0 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):