[docs] bug

Sandro Tosi sandro.tosi at gmail.com
Sat Mar 3 17:31:06 CET 2012


Hello Lex,

On Thu, Mar 1, 2012 at 13:18, Lex Kalinkin <lex at shamahan.com> wrote:
> Hi
>
> http://docs.python.org/py3k/library/multiprocessing.html#multiprocessing.Process

this documentation is for python 3.2.

> To show the individual process IDs involved, here is an expanded example:
> line 7: print('parent process:', os.getppid())
>
> AttributeError: 'module' object has no attribute 'getppid'

what version of python are you using to run the example?

$ ./python
imPython 3.2.2+ (3.2:88522997b021, Feb 18 2012, 12:40:26)
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getppid()
3399
>>>

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list