]> granicus.if.org Git - python/commitdiff
Issue #25169: os.getppid() is available on Windows since Python 3.2.
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 21 Sep 2015 03:12:50 +0000 (06:12 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 21 Sep 2015 03:12:50 +0000 (06:12 +0300)
Patch by Bar Harel.

Doc/library/multiprocessing.rst

index 93f59cdbf6c298b36b366ecefa45e262a0149968..cd680c513fe0bf3693e57878a5847f7cf07f1b86 100644 (file)
@@ -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):