Author jftuga
Recipients docs@python, jftuga
Date 2015-09-18.14:54:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442588076.4.0.907099744388.issue25169@psf.upfronthosting.co.za>
In-reply-to
Content
In the Windows Help File for Python 3.5:

17.2 multiprocessing
17.2.1.1 The Process class
2nd code example: "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('process id:', os.getpid())

os.getppid() is now available on Windows, so you can remove the if statement.
History
Date User Action Args
2015-09-18 14:54:36jftugasetrecipients: + jftuga, docs@python
2015-09-18 14:54:36jftugasetmessageid: <1442588076.4.0.907099744388.issue25169@psf.upfronthosting.co.za>
2015-09-18 14:54:36jftugalinkissue25169 messages
2015-09-18 14:54:36jftugacreate