Message251002
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. |
|
Date |
User |
Action |
Args |
2015-09-18 14:54:36 | jftuga | set | recipients:
+ jftuga, docs@python |
2015-09-18 14:54:36 | jftuga | set | messageid: <1442588076.4.0.907099744388.issue25169@psf.upfronthosting.co.za> |
2015-09-18 14:54:36 | jftuga | link | issue25169 messages |
2015-09-18 14:54:36 | jftuga | create | |
|