[Python-checkins] cpython (3.4): Issue #25169: os.getppid() is available on Windows since Python 3.2.

berker.peksag python-checkins at python.org
Mon Sep 21 05:13:32 CEST 2015


https://hg.python.org/cpython/rev/60b0bc23c69e
changeset:   98108:60b0bc23c69e
branch:      3.4
parent:      98105:ff0270e9bdfb
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Mon Sep 21 06:12:50 2015 +0300
summary:
  Issue #25169: os.getppid() is available on Windows since Python 3.2.

Patch by Bar Harel.

files:
  Doc/library/multiprocessing.rst |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -65,8 +65,7 @@
     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):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list