[issue1156] Suggested change to _exit function description in os module documentation

2007-09-14 Thread Johann Tonsing
Johann Tonsing added the comment: Thanks for explaining. (FWIW I reported this because several examples / recipes I saw elsewhere on the net used os._exit() in the parent. Perhaps they did this because they don't want to disrupt resources like file descriptors which the child has inherited o

[issue1156] Suggested change to _exit function description in os module documentation

2007-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: > Should "child" be replaced with "parent"? No. I'm pretty much I wrote that. The use case I was thinking of is the error handling in the child process after the exec fails. if you were to use sys.exit() there, which raises SystemExit, you're likely to hit

[issue1156] Suggested change to _exit function description in os module documentation

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Assigning to Martin. -- assignee: -> loewis nosy: +georg.brandl, loewis __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue1156] Suggested change to _exit function description in os module documentation

2007-09-12 Thread Johann Tonsing
New submission from Johann Tonsing: The document from which http://docs.python.org/lib/os-process.html was generated contains: "Note: The standard way to exit is sys.exit(n). _exit() should normally only be used in the child process after a fork()." Should "child" be replaced with "parent"?