[docs] Typo in 16.6.1.1.
Sebastian Zug
zug at ivs.cs.uni-magdeburg.de
Sat Oct 30 20:29:21 CEST 2010
Dear Python documentation team,
on page
http://docs.python.org/library/multiprocessing.html
in chapter "16.6.1.1. The Process class" there is a obvious typo inside
the second code example in line 7
from multiprocessing import Process
import os
def info(title):
print title
print 'module name:', __name__
print 'parent process:', os.getppid() <-- it means os.getpid()
print 'process id:', os.getpid()
def f(name):
info('function f')
print 'hello', name
if __name__ == '__main__':
info('main line')
p = Process(target=f, args=('bob',))
p.start()
p.join()
Best wishes from Germany
Enjoy the weekend
Sebastian
--
-------------------------------------------------------------
Dipl. Ing. Sebastian Zug
Dept. Embedded Systems and Operating Systems (EOS)
Institute for Distributed Systems (IVS)
Otto-von-Guericke-University of Magdeburg
Universitätsplatz 2
39106 Magdeburg
Germany
mail: zug at ivs.cs.uni-magdeburg.de
Tel.: +49 - 391 - 67 - 11459
Fax: +49 - 391 - 67 - 11161
More information about the docs
mailing list