This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mnewman
Recipients asksol, georg.brandl, jnoller, mnewman, sandro.tosi
Date 2010-10-13.01:12:00
SpamBayes Score 1.1946344e-07
Marked as misclassified No
Message-id <1286932323.12.0.16822175428.issue6417@psf.upfronthosting.co.za>
In-reply-to
Content
The example is working correctly for:
Python 3.2a3 (r32a3:85355, Oct 10 2010, 17:11:45) [MSC v.1500 32 bit (Intel)] on win32

# First test:
C:\mike>c:\Python32\python.exe s2.py
main line
module name: __main__
parent process: 2360
process id: 1584
function f
module name: __main__
parent process: 1584
process id: 3588
hello bob

# Second test (run it again to see process IDs change)
C:\mike>c:\Python32\python.exe s2.py
main line
module name: __main__
parent process: 2360
process id: 5904
function f
module name: __main__
parent process: 5904
process id: 1560
hello bob

# For reference:
C:\mike>c:\Python32\python.exe
Python 3.2a3 (r32a3:85355, Oct 10 2010, 17:11:45) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getppid()
2360
History
Date User Action Args
2010-10-13 01:12:03mnewmansetrecipients: + mnewman, georg.brandl, jnoller, asksol, sandro.tosi
2010-10-13 01:12:03mnewmansetmessageid: <1286932323.12.0.16822175428.issue6417@psf.upfronthosting.co.za>
2010-10-13 01:12:01mnewmanlinkissue6417 messages
2010-10-13 01:12:00mnewmancreate