small documentation bug in multiprocessing

Hello,
I was reading the documentation at: http://docs.python.org/library/multiprocessing.html#module-multiprocessing
I came across a bug where the sample code doesn't run: Search for "getppid", which should be changed to "getpid".
Regards,
Matt

On 27.06.2012 00:32, Matt Woelfel wrote:
Hello,
I was reading the documentation at: http://docs.python.org/library/multiprocessing.html#module-multiprocessing
I came across a bug where the sample code doesn't run: Search for "getppid", which should be changed to "getpid".
Hi Matt,
Thanks for the report. getppid() is certainly the correct function to call here. But it is not available on Windows, so I've now made the call conditional in the example.
cheers, Georg

Hi Georg,
I see I should have read the example more closely on what it was trying to show. Thank you for the clarification.
Kind regards,
Matt On Jul 1, 2012 2:49 AM, "Georg Brandl" georg@python.org wrote:
On 27.06.2012 00:32, Matt Woelfel wrote:
Hello,
I was reading the documentation at: http://docs.python.org/**library/multiprocessing.html#** module-multiprocessinghttp://docs.python.org/library/multiprocessing.html#module-multiprocessing
I came across a bug where the sample code doesn't run: Search for "getppid", which should be changed to "getpid".
Hi Matt,
Thanks for the report. getppid() is certainly the correct function to call here. But it is not available on Windows, so I've now made the call conditional in the example.
cheers, Georg
participants (2)
-
Georg Brandl
-
Matt Woelfel